Skip to content

Commit 5f2eebb

Browse files
cortinicofacebook-github-bot
authored andcommitted
Expand RNTester native interop Maestro coverage (#58444)
Summary: Add direct-deep-link Maestro coverage for Fabric interop child insertion and expand the legacy native module flow to validate its complete platform-specific result set. Cold-start RNTester for each deep link so the route is delivered through the initial URL path on both platforms. Exclude the local screenshot-baseline flow from Maestro Cloud. Differential Revision: D119484762
1 parent 23ac372 commit 5f2eebb

13 files changed

Lines changed: 478 additions & 102 deletions

‎.github/workflows/test-all.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
download-path: /tmp/RNTesterBuild/RNTester.app
185185
app-file: /tmp/RNTesterBuild/RNTester.app
186186
app-id: com.meta.RNTester.localDevelopment
187-
exclude-tags: android-only
187+
exclude-tags: android-only,local-screenshot-baseline
188188
secrets: inherit
189189

190190
test_e2e_ios_rntester:

‎packages/rn-tester/.maestro/alert.yml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
22
---
33
- launchApp
4-
- extendedWaitUntil:
5-
visible: 'Components'
6-
timeout: 30000
4+
- stopApp
75
- openLink: rntester://example/AlertExample/default-button
86
- extendedWaitUntil:
97
visible:
108
id: 'alert-with-default-button'
11-
timeout: 10000
9+
timeout: 30000
1210
- tapOn:
1311
id: 'alert-with-default-button'
1412
- assertVisible: 'An external USB drive has been detected!'
1513
- tapOn: 'OK'
14+
- stopApp
1615
- openLink: rntester://example/AlertExample/three-buttons
1716
- extendedWaitUntil:
1817
visible:
1918
id: 'alert-with-three-buttons'
20-
timeout: 10000
19+
timeout: 30000
2120
- tapOn:
2221
id: 'alert-with-three-buttons'
2322
- assertVisible: 'Do you want to save your changes?'

‎packages/rn-tester/.maestro/animated-fade-in-view.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
22
---
33
- launchApp
4-
- extendedWaitUntil:
5-
visible: 'Components'
6-
timeout: 30000
4+
- stopApp
75
- openLink: rntester://example/Animated/fadeInView
86
- extendedWaitUntil:
97
visible:
108
id: 'toggle-button'
11-
timeout: 10000
9+
timeout: 30000
1210
- assertVisible:
1311
id: 'fade-in-view'
1412
- tapOn:
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
22
---
33
- launchApp
4-
- extendedWaitUntil:
5-
visible: 'Components'
6-
timeout: 30000
7-
- assertVisible:
8-
id: 'components-tab'
9-
- assertVisible:
10-
id: 'apis-tab'
4+
- stopApp
115
- openLink: rntester://example/AppearanceExample
126
- extendedWaitUntil:
137
visible: 'useColorScheme hook'
14-
timeout: 10000
8+
timeout: 30000
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
2+
---
3+
- launchApp
4+
- runFlow:
5+
when:
6+
platform: iOS
7+
commands:
8+
- stopApp
9+
- openLink: rntester://example/FabricInteropLayer/add-children
10+
- extendedWaitUntil:
11+
visible:
12+
id: 'add-marker-btn'
13+
timeout: 30000
14+
- assertVisible:
15+
id: 'marker_0'
16+
- assertVisible:
17+
id: 'marker_1'
18+
- assertVisible:
19+
id: 'marker_2'
20+
- assertVisible:
21+
id: 'marker_3'
22+
- assertVisible:
23+
id: 'marker_4'
24+
- assertNotVisible:
25+
id: 'marker_5'
26+
- tapOn:
27+
id: 'add-marker-btn'
28+
- assertVisible:
29+
id: 'marker_5'

‎packages/rn-tester/.maestro/filter-animated-blur.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
22
---
33
- launchApp
4-
- extendedWaitUntil:
5-
visible: 'Components'
6-
timeout: 30000
4+
- stopApp
75
- openLink: rntester://example/Filter/animated-blur
86
- extendedWaitUntil:
97
visible:
108
id: 'animated-blur-button'
11-
timeout: 10000
9+
timeout: 30000
1210
- tapOn:
1311
id: 'animated-blur-button'
1412
- assertVisible:

‎packages/rn-tester/.maestro/flatlist-viewability.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
22
---
33
- launchApp
4-
- extendedWaitUntil:
5-
visible: 'Components'
6-
timeout: 30000
4+
- stopApp
75
- openLink: rntester://example/FlatListExample/onViewableItemsChanged-horizontal-noWaitForInteraction
86
- extendedWaitUntil:
97
visible:
108
id: 'flat_list'
11-
timeout: 10000
9+
timeout: 30000
1210
- assertVisible:
1311
id: 'output'
1412
text: '.*Pizza, Burger.*'
13+
- stopApp
1514
- openLink: rntester://example/FlatListExample/onViewableItemsChanged-horizontal-waitForInteraction
1615
- extendedWaitUntil:
1716
visible:
1817
id: 'flat_list'
19-
timeout: 10000
18+
timeout: 30000
2019
- scrollUntilVisible:
2120
element: 'Brownie'
2221
direction: RIGHT
2322
speed: 40
2423
- assertVisible:
2524
id: 'output'
2625
text: '.*Cheesecake.*'
26+
- stopApp
2727
- openLink: rntester://example/FlatListExample/onViewableItemsChanged-waitForInteraction
2828
- extendedWaitUntil:
2929
visible:
3030
id: 'flat_list'
31-
timeout: 10000
31+
timeout: 30000
3232
- scrollUntilVisible:
3333
element: 'Brownie'
3434
direction: DOWN

0 commit comments

Comments
 (0)