fix(snapshot): stop iOS 27 system toolbars from covering their own controls

Merged
TH
4d ago
+1322-9

Summary

On iOS 27 the covered check refused taps that XCTest reports hittable. The fix has three parts:

  • A toolbar inside a sibling navigation bar no longer marks a presentation boundary. It also no longer covers that bar's controls (Contacts).
  • The iOS interactive projection keeps the application root instead of collapsing it into a same-label back button or list (Settings).
  • Genuine covers keep covering. New negatives: a toolbar past the navigation bar, a menu inside it, and a bottom toolbar beneath an undimmed sheet.

5 files, including a fixture built from captured trees. Scope expansion: noise-redundancy.ts. Fixes #4491.

Validation

iPhone 18 Pro simulator, iOS 27.0:

base eec35e9622head 766f9d07ae
Contacts press DoneCovered by the toolbar "Toolbar" at (0, 62 402x812)tapped, contact saved
Settings General press AboutCovered by the toolbar "Toolbar" at (0, 0 402x874)tapped, About opens
find text Aboutsame refusaltapped
snapshot -i [covered]every row0

At head, a confirmation menu still covers the row beneath it.

The new tests fail on base. Reverting any single production change fails its own test.

pnpm check:affected --run --head 766f9d07ae: passed, exactCommit=true, 43 checks. CI owns device and provider lanes. An independent review was applied.

🤖 Generated with Claude Code