Skip to content

Commit d1c940d

Browse files
committed
Use deep links for ScrollView Maestro flows
1 parent c63744d commit d1c940d

2 files changed

Lines changed: 14 additions & 22 deletions

File tree

‎packages/rn-tester/.maestro/scrollview-minindex-maintainvisible.yml‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,17 @@
33
appId: ${APP_ID}
44
---
55
- launchApp
6+
- stopApp
7+
- openLink: rntester://example/ScrollViewMaintainVisibleContentPositionExample
8+
- runFlow: ./helpers/confirm-open-link.yml
69
# Change to portrait
710
- setOrientation: portrait
811
- waitForAnimationToEnd:
912
timeout: 3000
10-
# Find test
11-
- assertVisible: 'Components'
12-
- scrollUntilVisible:
13-
element:
14-
id: 'ScrollViewMaintainVisibleContentPositionExample'
15-
direction: DOWN
16-
speed: 80
17-
- tapOn:
18-
id: 'ScrollViewMaintainVisibleContentPositionExample'
19-
- waitForAnimationToEnd:
20-
timeout: 2000
13+
- extendedWaitUntil:
14+
visible:
15+
id: 'scroll-offset-display'
16+
timeout: 120000
2117
# Set minIndexForVisible to 0
2218
- tapOn:
2319
text: 'minIndex: 0'

‎packages/rn-tester/.maestro/scrollview-threshold-maintainvisible.yml‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,17 @@
33
appId: ${APP_ID}
44
---
55
- launchApp
6+
- stopApp
7+
- openLink: rntester://example/ScrollViewMaintainVisibleContentPositionExample
8+
- runFlow: ./helpers/confirm-open-link.yml
69
# Change to portrait
710
- setOrientation: portrait
811
- waitForAnimationToEnd:
912
timeout: 3000
10-
# Find test
11-
- assertVisible: 'Components'
12-
- scrollUntilVisible:
13-
element:
14-
id: 'ScrollViewMaintainVisibleContentPositionExample'
15-
direction: DOWN
16-
speed: 80
17-
- tapOn:
18-
id: 'ScrollViewMaintainVisibleContentPositionExample'
19-
- waitForAnimationToEnd:
20-
timeout: 2000
13+
- extendedWaitUntil:
14+
visible:
15+
id: 'scroll-offset-display'
16+
timeout: 120000
2117
# Disable threshold
2218
- tapOn:
2319
text: 'Threshold: OFF'

0 commit comments

Comments
 (0)