Skip to content

iPhone audit: excuse "text clipped" on the consent sheet's disclosures - #445

Merged
alexkroman merged 3 commits into
mainfrom
claude/consent-audit-false-positive
Nov 27, 2026
Merged

alexkroman merged 3 commits into
mainfrom
claude/consent-audit-false-positive

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

What & why

AccessibilityAuditTests.testConsent intermittently fails ios-audits (a) with:

[consent sheet, page 2 (largest text)] Text clipped … on staticText "The text just before your cursor"

It fails on both audit passes, so the suite's "a finding must repeat" rule doesn't catch it. It removed #436 and #439 from the merge queue, and the same code passed on those PRs' own CI runs.

It's a false positive. The screenshot the audit took at that moment, from #439's queue run, shows the row whole: three lines, with the icon inline on the first, which is how a List lays out a label at accessibility sizes. The rows already wrap to full height (WrappingLabelStyle), so no layout change is needed.

The change: isKnownArtifact now excuses "text clipped" on the sheet's four "Sent to AssemblyAI" rows, matched by their exact text (consentDisclosures). This is the same narrow, named exception the suite already makes for the "Professional" preset chip. Any other text on the consent sheet that clips still fails. The suite's comment lists the exception and the evidence for it.

How it was tested

  • scripts/check.sh --portable passes: swift-format, SwiftLint and the invariant checks. The UI tests run only on macOS CI, which verifies them here.
  • I read AGENTS.md and this doesn't reintroduce anything deliberately removed
  • Docs updated if behavior changed (the suite's own doc comment)

Generated by Claude Code

The accessibility audit intermittently reported "The text just before
your cursor" clipped on consent page 2 at AX XXXL, on both passes,
which took #436 and #439 out of the merge queue. The run's own
screenshot shows the row whole: three lines, the icon inline with the
first, as a List lays out a label at accessibility sizes; the rows
already wrap to full height (WrappingLabelStyle).

Name the four "Sent to AssemblyAI" rows in isKnownArtifact, as the
"Professional" chip is, so any other text on the sheet that clips
still fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DS5B1WSxEQnVLdMQNCquvA
@alexkroman
alexkroman enabled auto-merge November 27, 2026 03:31
@alexkroman
alexkroman added this pull request to the merge queue Nov 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 27, 2026
Both failed in #445's merge-queue run, on main with the bundle in
parallel:
- windowMinutesChanged advanced the TestClock as soon as the record showed
  the shorter end, which can be before the expiry is parked on the clock;
  the advance then woke nothing and the window never closed. It now waits
  for the just-under-a-minute sleeper first.
- acceptedPress caught .connecting during a real 200 ms start; polling on
  a busy main actor could miss it. The fake source's startDelay now runs
  on the rig's TestClock, so .connecting holds until the test steps past.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DS5B1WSxEQnVLdMQNCquvA

Copy link
Copy Markdown
Collaborator Author

The merge queue dropped this PR on two iPhone unit-test timeouts. Neither is in this PR's diff: both come from running BlurtiOSTests in parallel, which #439 turned on. I've merged main and added 10d951a to fix them:

  • windowMinutesChanged: the test advanced the TestClock as soon as the record showed the shorter end, which can happen before the expiry is parked on the clock. That advance woke nothing, so the window never closed. The test now waits for the expiry, just under a minute away, to park before advancing.
  • acceptedPress: the test caught .connecting during a real 200 ms start, and polling on a busy main actor could miss it. FakeListeningSource's startDelay now runs on the rig's TestClock, so .connecting holds until the test advances past it.

Generated by Claude Code

@alexkroman
alexkroman added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 5716ced Nov 27, 2026
22 checks passed
@alexkroman
alexkroman deleted the claude/consent-audit-false-positive branch November 27, 2026 13:53
alexkroman pushed a commit that referenced this pull request Nov 27, 2026
…g fixes

#445 excused "text clipped" on the consent sheet's four disclosure rows,
from the audit's own screenshot showing the row whole. With #447's fixed
drag, run 46010398262 (ios-audits a) put the row mid-screen at y 316.7 and
the audit still raised it: it was never about the bar's edge, the fling
only sometimes parked the row under the bar, where it was excused anyway.
The exception is the fix; its comment now says the finding is consistent.

#445 also fixed acceptedPress (the start delay on the rig's TestClock) and
windowMinutesChanged (waiting for an expiry parked 30–60 s out). This
branch's versions replace both — the start held until the test releases
it, the expiry exactly a minute on the window's injected clock — so the
four conflicted test files keep this branch's side; main's diff to them
was only those two fixes.

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