Skip to content

Commit

Permalink
Add new test cases, remove detox from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tboba committed Sep 27, 2023
1 parent 4fec91e commit 1d149f9
Show file tree
Hide file tree
Showing 24 changed files with 679 additions and 985 deletions.
2 changes: 1 addition & 1 deletion Example/e2e/bottomTabs/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
appId: com.swmansion.rnscreens.example
appId: ${APP_ID}
---
- runFlow: main-screen-and-back.yml
- runFlow: go-to-details-screen.yml
Expand Down
15 changes: 15 additions & 0 deletions Example/e2e/events/android-back-from-chats-none-animation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appId: ${APP_ID}
---
- launchApp
- tapOn:
id: "root-screen-playground-Events"
- tapOn:
id: "events-stack-animation-picker"
- tapOn:
id: "stack-animation-none"
- tapOn:
id: "events-go-to-chats"
- back

- assertVisible: "9. Main | transitionStart | opening"
- assertVisible: "10. Main | transitionEnd | opening"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appId: ${APP_ID}
---
- launchApp
- tapOn:
id: "root-screen-playground-Events"
- tapOn:
id: "events-stack-animation-picker"
- tapOn:
id: "stack-animation-slide_from_bottom"
- tapOn:
id: "events-go-to-chats"
- back

- assertVisible: "9. Main | transitionStart | opening"
- assertVisible: "10. Main | transitionEnd | opening"
11 changes: 11 additions & 0 deletions Example/e2e/events/android-back-from-chats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
appId: ${APP_ID}
---
- launchApp
- tapOn:
id: "root-screen-playground-Events"
- tapOn:
id: "events-go-to-chats"
- back

- assertVisible: "9. Main | transitionStart | opening"
- assertVisible: "10. Main | transitionEnd | opening"
32 changes: 32 additions & 0 deletions Example/e2e/events/back-from-chats-none-animation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
appId: ${APP_ID}
---
- launchApp
- tapOn:
id: "root-screen-playground-Events"
- tapOn:
id: "events-stack-animation-picker"
- tapOn:
id: "stack-animation-none"
- tapOn:
id: "events-go-to-chats"

- runFlow:
when:
platform: iOS
commands:
# TODO: Check if it's possible to tap on type `_UIButtonBarButton`
- tapOn:
id: "_UIButtonBarButton"

- runFlow:
when:
platform: Android
commands:
- back

- assertVisible: "9. Chats | transitionStart | closing"
- assertVisible: "10. Privacy | transitionStart | closing"
- assertVisible: "11. Main | transitionStart | opening"
- assertVisible: "12. Chats | transitionEnd | closing"
- assertVisible: "13. Privacy | transitionEnd | closing"
- assertVisible: "14. Main | transitionEnd | opening"
32 changes: 32 additions & 0 deletions Example/e2e/events/back-from-chats-slide-from-bottom-animation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
appId: ${APP_ID}
---
- launchApp
- tapOn:
id: "root-screen-playground-Events"
- tapOn:
id: "events-stack-animation-picker"
- tapOn:
id: "stack-animation-slide_from_bottom"
- tapOn:
id: "events-go-to-chats"

- runFlow:
when:
platform: iOS
commands:
# TODO: Check if it's possible to tap on type `_UIButtonBarButton`
- tapOn:
id: "_UIButtonBarButton"

- runFlow:
when:
platform: Android
commands:
- back

- assertVisible: "9. Chats | transitionStart | closing"
- assertVisible: "10. Privacy | transitionStart | closing"
- assertVisible: "11. Main | transitionStart | opening"
- assertVisible: "12. Chats | transitionEnd | closing"
- assertVisible: "13. Privacy | transitionEnd | closing"
- assertVisible: "14. Main | transitionEnd | opening"
28 changes: 28 additions & 0 deletions Example/e2e/events/back-from-chats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
appId: ${APP_ID}
---
- launchApp
- tapOn:
id: "root-screen-playground-Events"
- tapOn:
id: "events-go-to-chats"

- runFlow:
when:
platform: iOS
commands:
# TODO: Check if it's possible to tap on type `_UIButtonBarButton`
- tapOn:
id: "_UIButtonBarButton"

- runFlow:
when:
platform: Android
commands:
- back

- assertVisible: "9. Chats | transitionStart | closing"
- assertVisible: "10. Privacy | transitionStart | closing"
- assertVisible: "11. Main | transitionStart | opening"
- assertVisible: "12. Chats | transitionEnd | closing"
- assertVisible: "13. Privacy | transitionEnd | closing"
- assertVisible: "14. Main | transitionEnd | opening"
10 changes: 10 additions & 0 deletions Example/e2e/events/check-playground-exist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
appId: ${APP_ID}
---
- launchApp
- assertVisible:
id: "root-screen-playground-Events"
- tapOn:
id: "root-screen-playground-Events"

- assertVisible: "1. Main | transitionStart | opening"
- assertVisible: "2. Main | transitionEnd | opening"
20 changes: 20 additions & 0 deletions Example/e2e/events/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
appId: ${APP_ID}
---
- runFlow: check-playground-exist.yml
- runFlow: back-from-chats.yml
- runFlow: back-from-chats-none-animation.yml
- runFlow: slide-from-bottom-animation.yml
- runFlow: back-from-chats-slide-from-bottom-animation.yml

- runFlow:
when:
platform: Android
file: android-back-from-chats.yml
- runFlow:
when:
platform: Android
file: android-back-from-chats-none-animation.yml
- runFlow:
when:
platform: Android
file: android-back-from-chats-slide-from-bottom-animation.yml
18 changes: 18 additions & 0 deletions Example/e2e/events/slide-from-bottom-animation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
appId: ${APP_ID}
---
- launchApp
- tapOn:
id: "root-screen-playground-Events"
- tapOn:
id: "events-stack-animation-picker"
- tapOn:
id: "stack-animation-slide_from_bottom"
- tapOn:
id: "events-go-to-chats"

- assertVisible: "3. Main | transitionStart | closing"
- assertVisible: "4. Chats | transitionStart | opening"
- assertVisible: "5. Privacy | transitionStart | opening"
- assertVisible: "6. Main | transitionEnd | closing"
- assertVisible: "7. Chats | transitionEnd | opening"
- assertVisible: "8. Privacy | transitionEnd | opening"
Loading

0 comments on commit 1d149f9

Please sign in to comment.