Skip to content

Commit

Permalink
test: add related tests for onboarding
Browse files Browse the repository at this point in the history
add test for onboarding screen by clicks, swipe and skip
  • Loading branch information
nivekgtc committed Feb 18, 2025
1 parent 07b7739 commit 5505024
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
35 changes: 35 additions & 0 deletions packages/.maestro/onboarding/onboarding.continue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
appId: com.example.app

---

- launchApp:
appId: "com.example.app"
clearState: true
stopApp: true
permissions:
notifications: allow
android.permission.ACCESS_FINE_LOCATION: deny

- assertVisible:
text: "Join the Greenstand movement!"

- repeat:
while:
notVisible: GET STARTED
commands:
- tapOn: CONTINUE

- assertVisible:
text: "Enjoy the ease and convenience of secure and reliable token"

- assertVisible:
text: "GET STARTED"

- tapOn:
text: "GET STARTED"

- assertNotVisible:
text: "Enjoy the ease and convenience of secure and reliable token"

- assertVisible:
text: "Log In"
20 changes: 20 additions & 0 deletions packages/.maestro/onboarding/onboarding.skip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
appId: com.example.app

---

- launchApp:
appId: "com.example.app"
clearState: true
stopApp: true
permissions:
notifications: allow
android.permission.ACCESS_FINE_LOCATION: deny

- assertVisible:
text: "Join the Greenstand movement!"

- tapOn:
text: SKIP THE TOUR

- assertVisible:
text: "Log In"
41 changes: 41 additions & 0 deletions packages/.maestro/onboarding/onboarding.swipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
appId: com.example.app

---

- launchApp:
appId: "com.example.app"
clearState: true
stopApp: true
permissions:
notifications: allow
android.permission.ACCESS_FINE_LOCATION: deny

- assertVisible:
text: "Join the Greenstand movement!"

- swipe:
start: "80%, 50%"
end: "20%, 50%"
duration: 500

- assertVisible:
text: "Experience the convenience"

- swipe:
start: "80%, 50%"
end: "20%, 50%"
duration: 500

- assertVisible:
text: "Enjoy the ease and convenience of secure and reliable token"

- assertVisible:
text: "GET STARTED"

- tapOn: GET STARTED

- assertNotVisible:
text: "Enjoy the ease and convenience of secure and reliable token"

- assertVisible:
text: "Log In"

0 comments on commit 5505024

Please sign in to comment.