chore: Retry sign in tap in tests
This commit is contained in:
parent
993e12a946
commit
89864cfd0c
2 changed files with 7 additions and 3 deletions
1
.github/workflows/integrate.yaml
vendored
1
.github/workflows/integrate.yaml
vendored
|
|
@ -233,7 +233,6 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
flutter run --use-application-binary=$PWD/app-debug.apk > flutter_logs.txt 2>&1 &
|
flutter run --use-application-binary=$PWD/app-debug.apk > flutter_logs.txt 2>&1 &
|
||||||
FLUTTER_PID=$!
|
FLUTTER_PID=$!
|
||||||
sleep 10
|
|
||||||
maestro test integration_test/login.yaml --env HOMESERVER=10.0.2.2 --env USER1_NAME=${USER1_NAME} --env USER1_PW=${USER1_PW}
|
maestro test integration_test/login.yaml --env HOMESERVER=10.0.2.2 --env USER1_NAME=${USER1_NAME} --env USER1_PW=${USER1_PW}
|
||||||
kill $FLUTTER_PID 2>/dev/null || true
|
kill $FLUTTER_PID 2>/dev/null || true
|
||||||
cp flutter_logs.txt ~/.maestro/tests/
|
cp flutter_logs.txt ~/.maestro/tests/
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
appId: chat.fluffy.fluffychat
|
appId: chat.fluffy.fluffychat
|
||||||
---
|
---
|
||||||
- assertVisible: "Sign in"
|
- extendedWaitUntil: # Wait for app to be visible
|
||||||
|
visible: "Sign in"
|
||||||
|
timeout: 60000
|
||||||
|
- retry:
|
||||||
|
maxRetries: 10 # Emulator might need some time to be ready to
|
||||||
|
commands:
|
||||||
- tapOn: "Sign in"
|
- tapOn: "Sign in"
|
||||||
- tapOn: "Search or enter homeserver address"
|
- tapOn: "Search or enter homeserver address"
|
||||||
- inputText: "http://${HOMESERVER}"
|
- inputText: "http://${HOMESERVER}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue