fix(snapshot): name every iOS element type in the XCTest runner
Summary
The iOS XCTest runner named 32 of the 83 element types the SDK numbers and published every other one as Element(<rawValue>), while the Simulator AX bridge names all 83 ā so one node carried two type values depending on which producer served the capture (#4657). The runner's table now covers every raw value, and contracts/fixtures/ios-element-type-names.json is the one table both producers mirror, each side pinned to it by its own parity test. The review's scroll-container finding is fixed here too: an indicator's own names are ruled out before the fragment match, so a runner-served ScrollBar is no longer read as a scroll container.
Before / after
A real UIPickerView wheel (raw value 39), one node captured twice:
- before: bridge
PickerWheel, runnerElement(39) - after: both producers
PickerWheel
Validation
- Both producers are pinned to the shared table for every raw value. On iPhone 18 Pro they failed at origin/main's table (55 mismatches, including
Element(39)vsPickerWheel) and pass at head. - Runner-served proof:
snapshot --actions --jsonof the new--agent-device-picker-wheelfixture reports backends{"apple-runner":2}and"type": "PickerWheel"for the wheel node. A dispatched XCTest Nightly run on this branch runs the#if os(iOS)wheel test remotely. - macOS host lane: 436 runner tests, 0 failures. Contract, capture, selector and maestro suites: 6393 pass.
swift test --package-path apple/snapshot-presentation: 51 pass.pnpm check:xctest-selectionandpnpm formatpass.
Fixes #4657
š¤ Generated with Claude Code

Open in [code]smith Ā· Need help on this PR? Tag @codesmith-bot with what you need.