-
-
Notifications
You must be signed in to change notification settings - Fork 303
fix(ios): Simulator AX bridge reports enabled from the NotEnabled trait #2644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thymikee
merged 4 commits into
callstack:main
from
okwasniewski:fix/ios-bridge-enabled-state
Sep 17, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
1197a48
fix(ios): Simulator AX bridge reports enabled from the NotEnabled trait
okwasniewski 722afea
fix(ios): a source-declared disabled node folds to non-hittable witho…
okwasniewski d92c5a4
fix(ios): a promoted navigation title affordance retracts the field's…
okwasniewski ee22c24
fix(ios): keep retracted facts through later patches and carry the tr…
okwasniewski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
packages/capture-kit/src/ios-snapshot-engine/transitions.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| import { expect, test } from 'vitest'; | ||
| import type { RawSnapshotNode } from '@agent-device/kernel/snapshot'; | ||
| import { presentIosInteractiveSnapshot } from '@agent-device/capture-kit/ios-snapshot-engine'; | ||
|
|
||
| test('a disabled navigation title field is promoted to a Button without its hittability', () => { | ||
| const nodes: RawSnapshotNode[] = [ | ||
| { | ||
| index: 0, | ||
| depth: 0, | ||
| type: 'Application', | ||
| label: 'Demo', | ||
| rect: { x: 0, y: 0, width: 390, height: 844 }, | ||
| }, | ||
| { | ||
| index: 1, | ||
| depth: 1, | ||
| parentIndex: 0, | ||
| type: 'NavigationBar', | ||
| label: 'Team Standup', | ||
| rect: { x: 0, y: 56, width: 390, height: 44 }, | ||
| }, | ||
| { | ||
| index: 2, | ||
| depth: 2, | ||
| parentIndex: 1, | ||
| type: 'Image', | ||
| identifier: 'RoomDetailsIconImageView', | ||
| rect: { x: 81, y: 80, width: 14, height: 14 }, | ||
| }, | ||
| { | ||
| index: 3, | ||
| depth: 2, | ||
| parentIndex: 1, | ||
| type: 'TextField', | ||
| label: 'Team Standup', | ||
| value: 'Team Standup', | ||
| identifier: 'DisplayNameTextField', | ||
| enabled: false, | ||
| hittable: false, | ||
| rect: { x: 100, y: 67, width: 113, height: 22 }, | ||
| }, | ||
| { | ||
| index: 4, | ||
| depth: 2, | ||
| parentIndex: 1, | ||
| type: 'StaticText', | ||
| label: 'Team Standup', | ||
| rect: { x: 219, y: 58, width: 85, height: 40 }, | ||
| }, | ||
| ]; | ||
|
|
||
| const presented = presentIosInteractiveSnapshot(nodes); | ||
| const affordance = presented.find((node) => node.identifier === 'DisplayNameTextField'); | ||
|
|
||
| expect(affordance).toMatchObject({ type: 'Button', label: 'Team Standup', enabled: true }); | ||
| expect(affordance && 'hittable' in affordance).toBe(false); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.