Skip to content

Tap a scrolled-to control only once its list is at rest - #401

Merged
alexkroman merged 3 commits into
mainfrom
test/audit-tap-at-rest
Nov 25, 2026
Merged

alexkroman merged 3 commits into
mainfrom
test/audit-tap-at-rest

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

What

AccessibilityAuditTests.scrollTo now waits for the element's frame to stop changing (polling every 0.2 s, for up to 4 s) before it returns the element to be tapped.

Why

testConsent failed on #400's CI (run) with "Turning a session on should ask consent". The test waits 10 s for the consent sheet, so the sheet wasn't slow; the tap never toggled the switch. scrollTo returns as soon as the switch reaches the middle band, which can be while the list is still coasting from the last drag. On iOS a tap during that coast only stops the scroll and never reaches the control, and on a slow runner the coast runs longer. This is the same kind of timing problem #400 fixed for the per-page audit.

Verification

  • scripts/ios-uitest.sh: all 12 audits pass (438 s)
  • swiftlint lint --strict and swift-format lint --strict on the file: clean

🤖 Generated with Claude Code

alexkroman-assembly and others added 3 commits November 25, 2026 00:53
…dings that repeat

The default-size audit of Settings' last page intermittently called the
system-font rows at its foot "Dynamic Type unsupported" on CI (never on
a Mac, 21 local runs), ejecting #394 from the merge queue. Each page is
now snapshotted until two in a row agree rather than after a fixed
0.6 s, and a screen that raised findings is audited again untouched:
only what both passes raise fails, so a font that doesn't scale still
does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tap while the list still coasts from scrollTo's last drag only stops
the scroll; on a slow CI runner testConsent's switch stayed off and the
consent sheet never came (run 45580347848).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alexkroman
alexkroman enabled auto-merge November 25, 2026 10:15
@alexkroman
alexkroman added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit eee223e Nov 25, 2026
15 checks passed
@alexkroman
alexkroman deleted the test/audit-tap-at-rest branch November 25, 2026 11:42
alexkroman pushed a commit that referenced this pull request Nov 25, 2026
On CI only, testConsent's tap on the Home switch has landed and done
nothing — no consent sheet within 10 s — even after #401 made scrollTo wait
for the list to rest (again in run 45628630798). The test now waits half the
timeout for the sheet and, if it hasn't come and the switch is still there
to tap, taps once more. A failure's message reports the switch's state and
any alert over the app, since CI uploads no result bundle from this suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DS5B1SvkTYz9bn8LeLwB8t
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.

2 participants