test(e2e-mobile): Add app restart verification to wallet test#19802
test(e2e-mobile): Add app restart verification to wallet test#19802glitchminer merged 1 commit intomasterfrom
Conversation
Jenkins BuildsClick to see older builds (28)
|
| return False | ||
|
|
||
| auth_modal = KeycardAuthenticationModal(self.driver) | ||
| if auth_modal.is_displayed(timeout=3): |
There was a problem hiding this comment.
would it be a good idea to extract the timeouts as constants in a file? Right now the timeouts seem random to me.
The reasoning being that maybe these timeouts could be used in the future to lock in place perf improvements. Even squish is not there yet, but at last we'll have an easier job. Ideally all timeouts except for the login should be way under 1 sec (I know it's far fetched now).
There was a problem hiding this comment.
agree, will create a task to review this across the other pages as well.
a280ce0 to
2b17c84
Compare
ac1ddd6 to
fc197b9
Compare
2b17c84 to
5459ad4
Compare
fc197b9 to
12b99a1
Compare
| toast = app.wait_for_toast( | ||
| expected_substring="successfully added", | ||
| timeout=8, | ||
| stability=0.2, |
There was a problem hiding this comment.
Method checks for a toast appearing within a certain timeframe.
In some cases it was noted that a toast appeared and disappeared too quickly for the text to be checked so a time is added to make sure the toast is still present and avoid an unnecessary fail.
Summary
find_account_element_by_name()method to locate account by name (more robust than index-based selection)delete_account_by_name()method to delete specific account by name_complete_account_deletion()helperTest Flow
The extended test now covers:
Test plan
video-9534e68eae2eba44683eaa08fcd6ba62b41394eb.mp4
Closes #19777