Skip to content

test(e2e-mobile): Add app restart verification to wallet test#19802

Merged
glitchminer merged 1 commit intomasterfrom
test/e2e-mobile-account-restart
Feb 2, 2026
Merged

test(e2e-mobile): Add app restart verification to wallet test#19802
glitchminer merged 1 commit intomasterfrom
test/e2e-mobile-account-restart

Conversation

@glitchminer
Copy link
Contributor

Summary

  • Add find_account_element_by_name() method to locate account by name (more robust than index-based selection)
  • Add delete_account_by_name() method to delete specific account by name
  • Refactor delete methods to share common _complete_account_deletion() helper
  • Extend test with app restart verification steps

Test Flow

The extended test now covers:

  1. Add account
  2. Verify added
  3. Rename account
  4. Verify renamed
  5. Restart app (NEW)
  6. Re-authenticate after restart (NEW)
  7. Verify wallet panel loads (NEW)
  8. Verify renamed account persists (NEW)
  9. Add second account after restart (NEW)
  10. Verify second account added (NEW)
  11. Delete renamed account (by name)
  12. Verify deleted

Test plan

  • Test passes on BrowserStack Android
video-9534e68eae2eba44683eaa08fcd6ba62b41394eb.mp4

Closes #19777

@glitchminer glitchminer self-assigned this Jan 27, 2026
@glitchminer glitchminer requested a review from a team as a code owner January 27, 2026 11:35
@glitchminer glitchminer linked an issue Jan 27, 2026 that may be closed by this pull request
7 tasks
@status-im-auto
Copy link
Member

status-im-auto commented Jan 27, 2026

Jenkins Builds

Click to see older builds (28)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ac1ddd6 1 2026-01-27 11:46:05 ~10 min android/arm64 🤖apk 📲
✔️ ac1ddd6 1 2026-01-27 11:48:38 ~12 min tests/nim 📄log
✔️ ac1ddd6 1 2026-01-27 11:49:25 ~13 min ios/aarch64 📱ipa 📲
✔️ ac1ddd6 1 2026-01-27 11:52:27 ~16 min tests/ui 📄log
✖️ ac1ddd6 PR19802 2026-01-27 11:53:26 ~7 min tests/e2e-android 📦pkg
✔️ ac1ddd6 1 2026-01-27 11:54:39 ~18 min macos/aarch64 🍎dmg
✔️ ac1ddd6 1 2026-01-27 11:55:37 ~19 min linux/x86_64-nwaku 📦tgz
✔️ ac1ddd6 1 2026-01-27 11:55:49 ~20 min macos/aarch64-nwaku 🍎dmg
✔️ ac1ddd6 1 2026-01-27 11:58:20 ~22 min linux/x86_64 📦tgz
✔️ ac1ddd6 1 2026-01-27 12:09:15 ~33 min windows/x86_64 💿exe
✔️ ac1ddd6 9394 2026-01-27 12:16:18 ~17 min tests/e2e 📊rpt
✔️ ac1ddd6 1564 2026-01-27 12:35:43 ~26 min tests/e2e-windows 📊rpt
✔️ fc197b9 2 2026-01-30 11:32:03 ~9 min tests/nim 📄log
✔️ fc197b9 2 2026-01-30 11:33:06 ~10 min android/arm64 🤖apk 📲
fc197b9 2 2026-01-30 11:33:59 ~11 min macos/aarch64-nwaku 📄log
✔️ fc197b9 2 2026-01-30 11:39:30 ~17 min tests/ui 📄log
✔️ fc197b9 2 2026-01-30 11:39:31 ~17 min ios/aarch64 📱ipa 📲
✔️ fc197b9 2 2026-01-30 11:41:37 ~19 min linux/x86_64 📦tgz
✔️ fc197b9 2 2026-01-30 11:41:39 ~19 min macos/aarch64 🍎dmg
✖️ fc197b9 PR19802 2026-01-30 11:42:11 ~8 min tests/e2e-android 📦pkg
✔️ fc197b9 2 2026-01-30 11:43:22 ~21 min linux/x86_64-nwaku 📦tgz
✔️ fc197b9 2 2026-01-30 11:57:10 ~34 min windows/x86_64 💿exe
✔️ fc197b9 9474 2026-01-30 11:59:14 ~17 min tests/e2e 📊rpt
✖️ fc197b9 1610 2026-01-30 12:24:40 ~27 min tests/e2e-windows 📊rpt
✔️ fc197b9 3 2026-01-30 15:51:18 ~34 min windows/x86_64 💿exe
✔️ fc197b9 1619 2026-01-30 16:16:02 ~24 min tests/e2e-windows 📊rpt
fc197b9 3 2026-02-02 13:10:26 ~7 min macos/aarch64-nwaku 📄log
fc197b9 3 2026-02-02 13:10:26 ~7 min macos/aarch64 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 12b99a1 4 2026-02-02 13:22:40 ~9 min android/arm64 🤖apk 📲
✔️ 12b99a1 4 2026-02-02 13:23:38 ~10 min tests/nim 📄log
12b99a1 4 2026-02-02 13:23:56 ~10 min macos/aarch64-nwaku 📄log
✖️ 12b99a1 508 2026-02-02 13:26:35 ~3 min tests/e2e-android 📦pkg
✔️ 12b99a1 4 2026-02-02 13:28:16 ~15 min ios/aarch64 📱ipa 📲
✔️ 12b99a1 4 2026-02-02 13:30:10 ~16 min tests/ui 📄log
✔️ 12b99a1 4 2026-02-02 13:32:54 ~19 min macos/aarch64 🍎dmg
✔️ 12b99a1 4 2026-02-02 13:32:55 ~19 min linux/x86_64 📦tgz
✔️ 12b99a1 4 2026-02-02 13:35:11 ~22 min linux/x86_64-nwaku 📦tgz
✔️ 12b99a1 5 2026-02-02 13:49:57 ~36 min windows/x86_64 💿exe
✔️ 12b99a1 9524 2026-02-02 13:59:58 ~26 min tests/e2e 📊rpt
✖️ 12b99a1 1645 2026-02-02 14:17:59 ~27 min tests/e2e-windows 📊rpt

return False

auth_modal = KeycardAuthenticationModal(self.driver)
if auth_modal.is_displayed(timeout=3):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, will create a task to review this across the other pages as well.

@glitchminer glitchminer force-pushed the test/e2e-mobile-account-rename branch from a280ce0 to 2b17c84 Compare January 30, 2026 11:09
@glitchminer glitchminer force-pushed the test/e2e-mobile-account-restart branch from ac1ddd6 to fc197b9 Compare January 30, 2026 11:21
@glitchminer glitchminer force-pushed the test/e2e-mobile-account-rename branch from 2b17c84 to 5459ad4 Compare February 2, 2026 11:32
Base automatically changed from test/e2e-mobile-account-rename to master February 2, 2026 13:02
@glitchminer glitchminer force-pushed the test/e2e-mobile-account-restart branch from fc197b9 to 12b99a1 Compare February 2, 2026 13:12
Copy link
Contributor

@noeliaSD noeliaSD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

toast = app.wait_for_toast(
expected_substring="successfully added",
timeout=8,
stability=0.2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@glitchminer glitchminer merged commit aee1e33 into master Feb 2, 2026
12 of 14 checks passed
@glitchminer glitchminer deleted the test/e2e-mobile-account-restart branch February 2, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(e2e-mobile): add app restart verification to wallet account test

5 participants