Skip to content

Commit e374ce3

Browse files
cortinicofacebook-github-bot
authored andcommitted
Add deep-link Maestro flows for RNTester lists
Summary: Add Maestro coverage for FlatList and SectionList viewability behavior using direct RNTester example deep links. Platform-specific assertions remain conditional within the flows. Changelog: [Internal] Differential Revision: D119484760
1 parent fe748a3 commit e374ce3

2 files changed

Lines changed: 90 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
2+
---
3+
- launchApp
4+
- extendedWaitUntil:
5+
visible: 'Components'
6+
timeout: 30000
7+
- openLink: rntester://example/FlatListExample/onViewableItemsChanged-horizontal-noWaitForInteraction
8+
- extendedWaitUntil:
9+
visible:
10+
id: 'flat_list'
11+
timeout: 10000
12+
- assertVisible:
13+
id: 'output'
14+
text: '.*Pizza, Burger.*'
15+
- openLink: rntester://example/FlatListExample/onViewableItemsChanged-horizontal-waitForInteraction
16+
- extendedWaitUntil:
17+
visible:
18+
id: 'flat_list'
19+
timeout: 10000
20+
- scrollUntilVisible:
21+
element: 'Brownie'
22+
direction: RIGHT
23+
speed: 40
24+
- assertVisible:
25+
id: 'output'
26+
text: '.*Cheesecake.*'
27+
- openLink: rntester://example/FlatListExample/onViewableItemsChanged-waitForInteraction
28+
- extendedWaitUntil:
29+
visible:
30+
id: 'flat_list'
31+
timeout: 10000
32+
- scrollUntilVisible:
33+
element: 'Brownie'
34+
direction: DOWN
35+
speed: 40
36+
- assertVisible:
37+
id: 'output'
38+
text: '.*Cheesecake, Brownie.*'
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
2+
---
3+
- launchApp
4+
- extendedWaitUntil:
5+
visible: 'Components'
6+
timeout: 30000
7+
- openLink: rntester://example/SectionList/onEndReached
8+
- extendedWaitUntil:
9+
visible:
10+
id: 'start_test'
11+
timeout: 10000
12+
- tapOn:
13+
id: 'start_test'
14+
- assertVisible:
15+
id: 'output'
16+
text: 'onEndReached'
17+
- openLink: rntester://example/SectionList/onViewableItemsChanged-horizontal-noWaitForInteraction
18+
- extendedWaitUntil:
19+
visible:
20+
id: 'section_list'
21+
timeout: 10000
22+
- assertVisible:
23+
id: 'output'
24+
text: '.*Pizza.*'
25+
- openLink: rntester://example/SectionList/onViewableItemsChanged-horizontal-waitForInteraction
26+
- extendedWaitUntil:
27+
visible:
28+
id: 'section_list'
29+
timeout: 10000
30+
- scrollUntilVisible:
31+
element: 'Brownie'
32+
direction: RIGHT
33+
speed: 40
34+
- assertVisible:
35+
id: 'output'
36+
text: '.*Cheesecake.*'
37+
- runFlow:
38+
when:
39+
platform: Android
40+
commands:
41+
- openLink: rntester://example/SectionList/onViewableItemsChanged-waitForInteraction
42+
- extendedWaitUntil:
43+
visible:
44+
id: 'section_list'
45+
timeout: 10000
46+
- scrollUntilVisible:
47+
element: 'Brownie'
48+
direction: DOWN
49+
speed: 40
50+
- assertVisible:
51+
id: 'output'
52+
text: '.*Cheesecake.*'

0 commit comments

Comments
 (0)