Skip to content

Wait for the marking strip in testPDF, rather than reading it off the next line - #673

Merged
andiwand merged 1 commit into
mainfrom
api26-testpdf-waits
Sep 20, 2026
Merged

andiwand merged 1 commit into
mainfrom
api26-testpdf-waits

Conversation

@andiwand

@andiwand andiwand commented Sep 20, 2026

Copy link
Copy Markdown
Member

testPDF asserted on the strip's tools on the line after the click that opens mark-up mode. On the API 26 emulator that read as missing and the test failed in foss and lite - the strip reaches the screen after the click returns on a slow device.

It now waits for editing_tools to be visible, and then checks the highlighter: it is the tool every edition offers, and the first in the row, so a 320dp screen shows it without scrolling the strip. The pen, which lite taps to raise the Pro offer, gets a scrollTo() for the same reason.

What else API 26 says

The floor has been red for a while, and this was the only new red. Comparing the artifacts either side of the editing work:

test c4756212 (before) 9ac90a0a (after)
DarkModeTests ×2 fail fail
LargeTextTests.aMegabyteOfTextOpensAndIsSearchable fail fail
MainActivityTests.testODT (pro) fail fail
MainActivityTests.testPDF - fail

The two DarkModeTests are AssumptionViolatedException - the suite's own skip for a WebView that cannot darken (69.0.3497.100), which the runner counts as a failure. LargeTextTests passes on its own and fails in a full run on every device I have tried, here included. testODT reports bodyEditable=false editableNodes=0 odr=object, so the page loads and the editor never takes on that WebView; that one looks real and is worth its own look.

Checked on a Pixel 6 Pro emulator: MainActivityTests green in both editions.

… next line

The test asserted on the strip's tools on the line after the click that
opens mark-up mode. On the api 26 emulator that read as missing: the
strip reaches the screen after the click returns on a slow device.

It waits for `editing_tools` now, and checks the highlighter - the tool
every edition offers, and the first in the row, so a 320dp screen shows
it without scrolling. The pen gets a `scrollTo()` for the same reason.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FJJdfqpnVCKBNHXjAVxSou
@andiwand
andiwand enabled auto-merge (squash) September 20, 2026 13:21
@andiwand
andiwand disabled auto-merge September 20, 2026 13:29
@andiwand
andiwand merged commit 8cb8eb9 into main Sep 20, 2026
6 of 7 checks passed
@andiwand
andiwand deleted the api26-testpdf-waits branch September 20, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant