Skip to content

Commit af69868

Browse files
cortinicofacebook-github-bot
authored andcommitted
Add deep-link Maestro flows for RNTester basics (#58480)
Summary: Add Maestro coverage for portable RNTester interaction scenarios using direct example deep links. The flows cover alerts, animations, appearance, filters, text input, and touchables without screenshot baselines. Changelog: [Internal] Differential Revision: D119484759
1 parent ea2ca1b commit af69868

6 files changed

Lines changed: 137 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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/AlertExample/default-button
8+
- extendedWaitUntil:
9+
visible:
10+
id: 'alert-with-default-button'
11+
timeout: 10000
12+
- tapOn:
13+
id: 'alert-with-default-button'
14+
- assertVisible: 'An external USB drive has been detected!'
15+
- tapOn: 'OK'
16+
- openLink: rntester://example/AlertExample/three-buttons
17+
- extendedWaitUntil:
18+
visible:
19+
id: 'alert-with-three-buttons'
20+
timeout: 10000
21+
- tapOn:
22+
id: 'alert-with-three-buttons'
23+
- assertVisible: 'Do you want to save your changes?'
24+
- tapOn: 'Cancel'
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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/Animated/fadeInView
8+
- extendedWaitUntil:
9+
visible:
10+
id: 'toggle-button'
11+
timeout: 10000
12+
- assertVisible:
13+
id: 'fade-in-view'
14+
- tapOn:
15+
id: 'toggle-button'
16+
- assertNotVisible:
17+
id: 'fade-in-view'
18+
- tapOn:
19+
id: 'toggle-button'
20+
- assertVisible:
21+
id: 'fade-in-view'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
- assertVisible:
8+
id: 'components-tab'
9+
- assertVisible:
10+
id: 'apis-tab'
11+
- openLink: rntester://example/AppearanceExample
12+
- extendedWaitUntil:
13+
visible: 'useColorScheme hook'
14+
timeout: 10000
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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/Filter/animated-blur
8+
- extendedWaitUntil:
9+
visible:
10+
id: 'animated-blur-button'
11+
timeout: 10000
12+
- tapOn:
13+
id: 'animated-blur-button'
14+
- assertVisible:
15+
id: 'animated-blur-view'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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/TextInput/uncontrolledComponent
8+
- extendedWaitUntil:
9+
visible:
10+
id: 'uncontrolled-textinput'
11+
timeout: 10000
12+
- tapOn:
13+
id: 'uncontrolled-textinput'
14+
- eraseText
15+
- inputText: 'New value'
16+
- hideKeyboard
17+
- assertVisible:
18+
id: 'uncontrolled-textinput'
19+
text: 'New value'
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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/TouchableExample/feedback-events
8+
- extendedWaitUntil:
9+
visible:
10+
id: 'touchable_feedback_events_button'
11+
timeout: 10000
12+
- tapOn:
13+
id: 'touchable_feedback_events_button'
14+
- assertVisible:
15+
id: 'touchable_feedback_events_console'
16+
- openLink: rntester://example/TouchableExample/highlight
17+
- extendedWaitUntil:
18+
visible:
19+
id: 'touchable_highlight_text_button'
20+
timeout: 10000
21+
- tapOn:
22+
id: 'touchable_highlight_text_button'
23+
- assertVisible:
24+
id: 'touchable_highlight_console'
25+
text: 'TouchableHighlight onPress'
26+
- openLink: rntester://example/TouchableExample/hit-slop
27+
- extendedWaitUntil:
28+
visible:
29+
id: 'touchable_hit_slop_button'
30+
timeout: 10000
31+
- tapOn:
32+
id: 'touchable_hit_slop_button'
33+
- assertVisible:
34+
id: 'touchable_hit_slop'
35+
- openLink: rntester://example/TouchableExample/without-feedback
36+
- extendedWaitUntil:
37+
visible:
38+
id: 'touchable_without_feedback_button'
39+
timeout: 10000
40+
- tapOn:
41+
id: 'touchable_without_feedback_button'
42+
- assertVisible:
43+
id: 'touchable_without_feedback_console'
44+
text: 'TouchableWithoutFeedback onPress'

0 commit comments

Comments
 (0)