-
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup maestro, move events and bottom tabs to maestro
- Loading branch information
Showing
17 changed files
with
141 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ on: | |
- 'android/**' | ||
- 'common/**' | ||
- 'Example/**' | ||
- 'TestsExample/**' | ||
push: | ||
branches: | ||
- main | ||
|
@@ -40,10 +39,11 @@ jobs: | |
- name: Install node dependencies | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: yarn install | ||
- name: Build app | ||
- name: Install Maestro CLI | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: yarn build-e2e-android | ||
run: yarn install-e2e | ||
- name: Run emulator and tests | ||
run: yarn test-e2e-android | ||
uses: reactivecircus/[email protected] | ||
with: | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
|
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
11 changes: 11 additions & 0 deletions
11
Example/e2e/bottomTabs/first-screen-and-double-tap-on-tab.yml
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,11 @@ | ||
appId: ${APP_ID} | ||
--- | ||
- launchApp | ||
- tapOn: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- tapOn: "More details 0" | ||
- assertVisible: "More details 1" | ||
|
||
- doubleTapOn: | ||
id: "bottom-tabs-A-tab" | ||
- assertVisible: "More details 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,21 @@ | ||
appId: ${APP_ID} | ||
--- | ||
- launchApp | ||
- tapOn: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- tapOn: "More details 0" | ||
- assertVisible: "More details 1" | ||
|
||
- runFlow: | ||
when: | ||
platform: iOS | ||
commands: | ||
- tapOn: "Details screen #0" | ||
|
||
- runFlow: | ||
when: | ||
platform: Android | ||
commands: | ||
- back | ||
|
||
- assertVisible: "More details 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,8 @@ | ||
appId: ${APP_ID} | ||
--- | ||
- launchApp | ||
- tapOn: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- tapOn: "More details 0" | ||
- assertVisible: | ||
text: "More details 1" |
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,17 @@ | ||
appId: ${APP_ID} | ||
--- | ||
- launchApp | ||
- tapOn: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- tapOn: "More details 0" | ||
- tapOn: "More details 1" | ||
- assertVisible: "More details 2" | ||
|
||
- tapOn: | ||
id: "bottom-tabs-B-tab" | ||
- assertVisible: | ||
text: "More details 0" | ||
|
||
- tapOn: | ||
id: "bottom-tabs-A-tab" | ||
- assertVisible: "More details 2" |
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,9 @@ | ||
appId: ${APP_ID} | ||
--- | ||
- launchApp | ||
- assertVisible: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- tapOn: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- assertVisible: | ||
id: "bottom-tabs-more-details-button" |
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,8 @@ | ||
appId: com.swmansion.rnscreens.example | ||
--- | ||
- runFlow: main-screen-and-back.yml | ||
- runFlow: go-to-details-screen.yml | ||
- runFlow: go-to-details-screen-and-back.yml | ||
- runFlow: switch-between-tabs.yml | ||
- runFlow: first-screen-and-double-tap-on-tab.yml | ||
- runFlow: keep-stack-state-on-tab-change.yml |
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,16 @@ | ||
appId: ${APP_ID} | ||
--- | ||
- launchApp | ||
- tapOn: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- tapOn: | ||
id: "bottom-tabs-B-tab" | ||
- assertVisible: | ||
id: "bottom-tabs-header-right-id" | ||
text: "B" | ||
|
||
- tapOn: | ||
id: "bottom-tabs-A-tab" | ||
- assertVisible: | ||
id: "bottom-tabs-header-right-id" | ||
text: "A" |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
appId: ${APP_ID} | ||
onFlowStart: | ||
- launchApp | ||
--- | ||
- runFlow: onboarding/main.yml | ||
- runFlow: bottomTabs/main.yml |
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,6 @@ | ||
appId: ${APP_ID} | ||
--- | ||
- launchApp | ||
- assertVisible: | ||
id: "root-screen-examples-header" | ||
- runFlow: "visible-example-buttons.yml" |
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,22 @@ | ||
appId: ${APP_ID} | ||
--- | ||
# Example buttons | ||
- assertVisible: | ||
id: "root-screen-example-SimpleNativeStack" | ||
- assertVisible: | ||
id: "root-screen-example-StackPresentation" | ||
- assertVisible: | ||
id: "root-screen-example-BottomTabsAndStack" | ||
- assertVisible: | ||
id: "root-screen-example-Modals" | ||
# Playground buttons | ||
- assertVisible: | ||
id: "root-screen-playground-HeaderOptions" | ||
- assertVisible: | ||
id: "root-screen-playground-StatusBar" | ||
- assertVisible: | ||
id: "root-screen-playground-Animations" | ||
- assertVisible: | ||
id: "root-screen-playground-Orientation" | ||
- assertVisible: | ||
id: "root-screen-playground-SearchBar" |
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