Skip to content

Commit fe2cbb8

Browse files
committed
test(ios): expect the AX bridge to derive hittability in the depth-frontier E2E
#2775 made the Simulator AX bridge stamp geometric hittable and disclose the hittability gap only when no viewport is reported. The live depth-frontier scenario still required the old gap warning on every bridge capture, so every iOS Smoke run on main and on rebased PRs failed after #2775 merged. Assert the new contract instead: a bridge capture with a viewport carries no hittability-gap warning, and the on-screen projected child is hittable.
1 parent 7e9031a commit fe2cbb8

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎test/integration/ios-simulator-e2e/live-assertions.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const { assertElementText, assertWaitSelector, assertWaitText, capturePng
2323

2424
export type LiveSnapshotNode = {
2525
depth?: unknown;
26+
hittable?: unknown;
2627
identifier?: unknown;
2728
index?: unknown;
2829
label?: unknown;

‎test/integration/ios-simulator-e2e/live-snapshot-depth-frontier.ts‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export async function assertRegularVisibleDepthFrontier(context: LiveContext): P
4545
regularRoot.index,
4646
`projected child should be reparented to the presented root: ${JSON.stringify(regular)}`,
4747
);
48+
assert.equal(
49+
projectedChild.hittable,
50+
true,
51+
`on-screen projected child should carry geometric hittability: ${JSON.stringify(regular)}`,
52+
);
4853
assert.ok(
4954
regularNodes.every((node) => numericDepth(node) <= 1),
5055
`regular --depth 1 exceeded the presented frontier: ${JSON.stringify(regular)}`,
@@ -123,8 +128,9 @@ function assertSimulatorBridgeSnapshot(result: { json?: any }, description: stri
123128
undefined,
124129
`${description} must not carry XCTest tree quality metadata: ${JSON.stringify(result)}`,
125130
);
126-
assert.ok(
127-
result.json?.data?.warnings?.includes(MISSING_HITTABILITY_WARNING),
128-
`${description} must disclose the Simulator AX bridge evidence gap: ${JSON.stringify(result)}`,
131+
assert.equal(
132+
result.json?.data?.warnings?.includes(MISSING_HITTABILITY_WARNING) ?? false,
133+
false,
134+
`${description} reported a viewport, so the AX bridge must derive hittability instead of disclosing it as missing: ${JSON.stringify(result)}`,
129135
);
130136
}

0 commit comments

Comments
 (0)