chore: Retry sign in tap in tests

This commit is contained in:
Christian Kußowski 2026-03-06 08:52:05 +01:00
parent 993e12a946
commit 89864cfd0c
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 7 additions and 3 deletions

View file

@ -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/

View file

@ -1,7 +1,12 @@
appId: chat.fluffy.fluffychat appId: chat.fluffy.fluffychat
--- ---
- assertVisible: "Sign in" - extendedWaitUntil: # Wait for app to be visible
- tapOn: "Sign in" visible: "Sign in"
timeout: 60000
- retry:
maxRetries: 10 # Emulator might need some time to be ready to
commands:
- tapOn: "Sign in"
- tapOn: "Search or enter homeserver address" - tapOn: "Search or enter homeserver address"
- inputText: "http://${HOMESERVER}" - inputText: "http://${HOMESERVER}"
- pressKey: "back" - pressKey: "back"