forked from react-navigation/react-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add maestro tests with playwright adapter (react-navigation#12077)
This adds some basic Maestro tests. Note that most tests are not testing much, but once we have basic setup, we can update them as we go. Currently need to be run locally as I haven't been successful with CI setup for Android yet. This also adds custom logic that runs the Maestro tests to run with Playwright for Web, so we can reuse the same tests. We'll need to update the logic as we add more tests.
- Loading branch information
Showing
44 changed files
with
366 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Auth Flow | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/auth-flow | ||
- assertVisible: | ||
text: 'Sign in' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Bottom Tabs | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/bottom-tabs | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Drawer View | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/drawer-view | ||
- assertVisible: | ||
text: 'Drawer Layout' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Dynamic Tabs | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/dynamic-tabs | ||
- assertVisible: | ||
text: 'Tab 0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Link Component | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/link-component | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Linking Screen | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/linking-screen | ||
- assertVisible: | ||
text: 'Sign in' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Master Detail | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/master-detail | ||
- assertVisible: | ||
text: 'Pages' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Material Top Tabs | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/material-top-tabs-screen | ||
- assertVisible: | ||
text: 'Material Top Tabs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Mixed Header Mode | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/mixed-header-mode | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Mixed Native Stack | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/mixed-native-stack | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Mixed Stack | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/mixed-stack | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
appId: ${APP_ID} | ||
name: Modal Stack | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/modal-stack | ||
- assertVisible: | ||
text: 'Article by Gandalf' | ||
- tapOn: | ||
text: 'Push albums' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Albums' | ||
- tapOn: | ||
text: 'Push article' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Article by Babel fish' | ||
- tapOn: | ||
text: 'Go back' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Albums' | ||
- tapOn: | ||
text: 'Go back' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Native Stack Header Customization | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/native-stack-header-customization | ||
- assertVisible: | ||
text: 'What is Lorem Ipsum?' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Native Stack Prevent Remove | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/native-stack-prevent-remove | ||
- assertVisible: | ||
text: 'Input' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
appId: ${APP_ID} | ||
name: Native Stack | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/native-stack | ||
- assertVisible: | ||
text: 'Article by Gandalf' | ||
- tapOn: | ||
text: 'Push feed' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Feed' | ||
- tapOn: | ||
text: 'Push albums' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Albums' | ||
- tapOn: | ||
text: 'Navigate to article' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Article by Babel fish' | ||
- tapOn: | ||
text: 'Replace with feed' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Feed' | ||
- tapOn: | ||
text: 'Go back' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Albums' | ||
- tapOn: | ||
text: 'Pop by 2' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Article by Gandalf' | ||
- tapOn: | ||
text: 'Pop to albums' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Albums' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Navigator Layout | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/navigator-layout | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Screen Layout | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/screen-layout | ||
- assertVisible: | ||
text: 'Suspense & ErrorBoundary' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
appId: ${APP_ID} | ||
name: Simple Stack | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/simple-stack | ||
- assertVisible: | ||
text: 'Article by Gandalf' | ||
- tapOn: | ||
text: 'Update params' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Article by Babel fish' | ||
- tapOn: | ||
text: 'Replace with feed' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Feed' | ||
- tapOn: | ||
text: 'Navigate to albums' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Albums' | ||
- tapOn: | ||
text: 'Push article' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Article by Babel fish' | ||
- tapOn: | ||
text: 'Pop to albums' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Albums' | ||
- tapOn: | ||
text: 'Pop by 2' | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
text: 'Feed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Stack Header Customization | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/stack-header-customization | ||
- assertVisible: | ||
text: 'Article by Gandalf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Stack Preload Flow | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/stack-preload-flow | ||
- assertVisible: | ||
text: 'Home' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Stack Prevent Remove | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/stack-prevent-remove | ||
- assertVisible: | ||
text: 'Input' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Stack Transparent | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/stack-transparent | ||
- assertVisible: | ||
text: 'Article' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Static Screen | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/static-screen | ||
- assertVisible: | ||
text: 'Albums' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Tab Preload Flow | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/tab-preload-flow | ||
- assertVisible: | ||
text: 'Home' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: ${APP_ID} | ||
name: Tab View | ||
--- | ||
- openLink: | ||
link: exp://127.0.0.1:8081/--/tab-view | ||
- assertVisible: | ||
text: 'TabView Examples' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.