mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
@@ -13,14 +13,12 @@ appId: ${MAESTRO_APP_ID}
|
|||||||
- tapOn: "Cancel"
|
- tapOn: "Cancel"
|
||||||
- tapOn: "Remove this device"
|
- tapOn: "Remove this device"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
text: "Remove this device"
|
id: "sign-out-submit"
|
||||||
index: 1
|
|
||||||
# Cancel the dialog cancels the logout
|
# Cancel the dialog cancels the logout
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "dialog-negative"
|
id: "dialog-negative"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
text: "Remove this device"
|
id: "sign-out-submit"
|
||||||
index: 1
|
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "dialog-positive"
|
id: "dialog-positive"
|
||||||
- runFlow: ../assertions/assertInitDisplayed.yaml
|
- runFlow: ../assertions/assertInitDisplayed.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user