Skip to content

Commit 8f7974e

Browse files
test: wait for top toast before account picker in multi-srp Appium smoke
Import-success toasts now render at the top and cover the account picker, so dismiss them and wait for the account list before adding SRP-2 accounts. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8f82648 commit 8f7974e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/smoke-appium/accounts/multi-srp.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
import { createUserStorageController } from '../../smoke/identity/utils/mocks.js';
2222
import { IDENTITY_TEAM_SEED_PHRASE_2 } from '../../smoke/identity/utils/constants.js';
2323
import ImportSrpView from '../../page-objects/importSrp/ImportSrpView.js';
24+
import ToastModal from '../../page-objects/wallet/ToastModal.js';
2425
import { identityFixtureOptions } from './identity-fixture-options.js';
2526

2627
appiumTest.describe(SmokeAccounts('Account syncing - Multiple SRPs'), () => {
@@ -74,8 +75,11 @@ appiumTest.describe(SmokeAccounts('Account syncing - Multiple SRPs'), () => {
7475
await inputSrp(IDENTITY_TEAM_SEED_PHRASE_2);
7576
await ImportSrpView.tapImportButton();
7677
await waitForWalletHomePlaywright(20_000);
78+
// Top import-success toast covers the account picker until it dismisses.
79+
await ToastModal.waitForToastToDismiss();
7780

7881
await WalletView.tapIdenticon();
82+
await AccountListBottomSheet.waitForAccountListVisible();
7983
await waitUntilSyncedAccountsNumberEquals(3);
8084

8185
await AccountListBottomSheet.tapAddAccountButtonV2({
@@ -106,8 +110,11 @@ appiumTest.describe(SmokeAccounts('Account syncing - Multiple SRPs'), () => {
106110
await inputSrp(IDENTITY_TEAM_SEED_PHRASE_2);
107111
await ImportSrpView.tapImportButton();
108112
await waitForWalletHomePlaywright(20_000);
113+
// Top import-success toast covers the account picker until it dismisses.
114+
await ToastModal.waitForToastToDismiss();
109115

110116
await WalletView.tapIdenticon();
117+
await AccountListBottomSheet.waitForAccountListVisible();
111118
for (const [accountName, count] of Object.entries({
112119
[DEFAULT_ACCOUNT_NAME]: 2,
113120
[SECOND_ACCOUNT_NAME]: 1,

0 commit comments

Comments
 (0)