From f18e699bbb591c4e2a0d58eb9387ecfd3632dd44 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 16 Oct 2026 09:21:26 +0200 Subject: [PATCH] Fix Maestro logout test when the device is the only session Since #7861 all the sessions of the Maestro account are ended after each run, so the device under test is always the last session. In this case the title of the sign out screen does not contain "Remove this device" anymore, and tapping on the second occurrence of this text fails. Tap on the submit button using its test tag instead. Co-Authored-By: Claude Opus 5.5 (1M context) --- .maestro/tests/account/logout.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.maestro/tests/account/logout.yaml b/.maestro/tests/account/logout.yaml index 270020c82c..27700109f6 100644 --- a/.maestro/tests/account/logout.yaml +++ b/.maestro/tests/account/logout.yaml @@ -13,14 +13,12 @@ appId: ${MAESTRO_APP_ID} - tapOn: "Cancel" - tapOn: "Remove this device" - tapOn: - text: "Remove this device" - index: 1 + id: "sign-out-submit" # Cancel the dialog cancels the logout - tapOn: id: "dialog-negative" - tapOn: - text: "Remove this device" - index: 1 + id: "sign-out-submit" - tapOn: id: "dialog-positive" - runFlow: ../assertions/assertInitDisplayed.yaml