maestro cases
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Client App — Sign in with wrong password (negative test)
|
||||
# Uses valid email, invalid password; expects error and stays on Sign In
|
||||
# Run: maestro test .../auth/sign_in_invalid_password.yaml -e TEST_CLIENT_EMAIL=testclient@gmail.com -e TEST_CLIENT_INVALID_PASSWORD=wrongpass
|
||||
appId: com.krowwithus.client
|
||||
env:
|
||||
EMAIL: ${TEST_CLIENT_EMAIL}
|
||||
PASSWORD: ${TEST_CLIENT_INVALID_PASSWORD}
|
||||
---
|
||||
- launchApp
|
||||
- assertVisible: "Sign In"
|
||||
- tapOn: "Sign In"
|
||||
- assertVisible: "Email"
|
||||
- tapOn:
|
||||
id: sign_in_email
|
||||
- inputText: ${EMAIL}
|
||||
- tapOn:
|
||||
id: sign_in_password
|
||||
- inputText: ${PASSWORD}
|
||||
- tapOn: "Sign In"
|
||||
- extendedWaitUntil:
|
||||
visible: "Invalid"
|
||||
timeout: 5000
|
||||
- assertVisible: "Sign In"
|
||||
13
apps/mobile/apps/client/maestro/auth/sign_out.yaml
Normal file
13
apps/mobile/apps/client/maestro/auth/sign_out.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Client App — Sign out flow (tap Log Out, confirm in dialog)
|
||||
# Run: maestro test auth/sign_in.yaml auth/sign_out.yaml -e TEST_CLIENT_EMAIL=... -e TEST_CLIENT_PASSWORD=...
|
||||
appId: com.krowwithus.client
|
||||
---
|
||||
- launchApp
|
||||
- tapOn: "Settings"
|
||||
- extendedWaitUntil:
|
||||
visible: "Log Out"
|
||||
timeout: 5000
|
||||
- tapOn: "Log Out"
|
||||
- assertVisible: "Are you sure you want to log out?"
|
||||
- tapOn: "Log Out"
|
||||
- assertVisible: "Sign In"
|
||||
Reference in New Issue
Block a user