Skip to content

Commit 54ba3b4

Browse files
authored
fix(e2e): reach sidebar Accessibility item by focus instead of Dpad count (#7774)
The flow opened the drawer and pressed Left, Down, Down to reach Accessibility & Appearance. Left only moved focus because every room row kept its swipe action buttons mounted behind the row, and Down from one of those hidden buttons landed on the drawer's Profile item. Swipe actions now mount only while a row is swiped, so Left has nowhere to go and the two Downs stop on Edit status. Press Down until the Accessibility item holds focus, bounded and asserted like the login steps in the onboarding flow. The focused view is the keyboard-focus wrapper, which carries no testID, so the selector matches it by its sidebar-accessibility descendant.
1 parent f78954a commit 54ba3b4

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

‎.maestro/tests/keyboardNavigation/keyboard-navigation-components.yaml‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,21 @@ tags:
2727
visible:
2828
text: 'Accessibility & Appearance'
2929
timeout: 60000
30-
- pressKey: Remote Dpad Left
31-
- pressKey: Remote Dpad Down
32-
- pressKey: Remote Dpad Down
30+
- repeat:
31+
times: 10
32+
while:
33+
notVisible:
34+
focused: true
35+
containsDescendants:
36+
- id: 'sidebar-accessibility'
37+
commands:
38+
- pressKey: Remote Dpad Down
39+
- waitForAnimationToEnd:
40+
timeout: 1000
41+
- assertVisible:
42+
focused: true
43+
containsDescendants:
44+
- id: 'sidebar-accessibility'
3345
- pressKey: enter
3446

3547
# switches

0 commit comments

Comments
 (0)