From 89864cfd0cb59398784f5af815d8998c8858283a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Fri, 6 Mar 2026 08:52:05 +0100 Subject: [PATCH] chore: Retry sign in tap in tests --- .github/workflows/integrate.yaml | 1 - integration_test/login.yaml | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index d89c203e4..fb84067dd 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -233,7 +233,6 @@ jobs: script: | flutter run --use-application-binary=$PWD/app-debug.apk > flutter_logs.txt 2>&1 & 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} kill $FLUTTER_PID 2>/dev/null || true cp flutter_logs.txt ~/.maestro/tests/ diff --git a/integration_test/login.yaml b/integration_test/login.yaml index d32c255a1..5bd1a3bd4 100644 --- a/integration_test/login.yaml +++ b/integration_test/login.yaml @@ -1,7 +1,12 @@ appId: chat.fluffy.fluffychat --- -- assertVisible: "Sign in" -- tapOn: "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: "Search or enter homeserver address" - inputText: "http://${HOMESERVER}" - pressKey: "back"