Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/integration/ios-simulator-e2e/live-assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const { assertElementText, assertWaitSelector, assertWaitText, capturePng

export type LiveSnapshotNode = {
depth?: unknown;
hittable?: unknown;
identifier?: unknown;
index?: unknown;
label?: unknown;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ export async function assertRegularVisibleDepthFrontier(context: LiveContext): P
regularRoot.index,
`projected child should be reparented to the presented root: ${JSON.stringify(regular)}`,
);
assert.equal(
projectedChild.hittable,
true,
`on-screen projected child should carry geometric hittability: ${JSON.stringify(regular)}`,
);
assert.ok(
regularNodes.every((node) => numericDepth(node) <= 1),
`regular --depth 1 exceeded the presented frontier: ${JSON.stringify(regular)}`,
Expand Down Expand Up @@ -123,8 +128,9 @@ function assertSimulatorBridgeSnapshot(result: { json?: any }, description: stri
undefined,
`${description} must not carry XCTest tree quality metadata: ${JSON.stringify(result)}`,
);
assert.ok(
result.json?.data?.warnings?.includes(MISSING_HITTABILITY_WARNING),
`${description} must disclose the Simulator AX bridge evidence gap: ${JSON.stringify(result)}`,
assert.equal(
result.json?.data?.warnings?.includes(MISSING_HITTABILITY_WARNING) ?? false,
false,
`${description} reported a viewport, so the AX bridge must derive hittability instead of disclosing it as missing: ${JSON.stringify(result)}`,
);
}
Loading