Skip to content

Commit f52583a

Browse files
committed
migration setup additional waitings + stability
1 parent aa223fb commit f52583a

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

test/specs/migration.e2e.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
swipeFullScreen,
2121
tap,
2222
typeText,
23-
waitForBackup,
2423
waitForSetupWalletScreenFinish,
2524
} from '../helpers/actions';
2625
import { ciIt } from '../helpers/suite';
@@ -97,6 +96,8 @@ describe('@migration - Migration from legacy RN app to native app', () => {
9796
}
9897

9998
const { mnemonic, balance } = await setupLegacyWallet({ returnSeed: true });
99+
console.info('→ Waiting 60 seconds to ensure backups triggered...');
100+
await sleep(60000);
100101
writeMigrationEnvFile({
101102
fileName: 'migration_setup_standard.env',
102103
mnemonicVar: 'RN_MNEMONIC',
@@ -112,6 +113,8 @@ describe('@migration - Migration from legacy RN app to native app', () => {
112113
}
113114

114115
const { mnemonic, balance } = await setupWalletWithLegacyFunds({ returnSeed: true });
116+
console.info('→ Waiting 60 seconds to ensure backups triggered...');
117+
await sleep(60000);
115118
writeMigrationEnvFile({
116119
fileName: 'migration_setup_sweep.env',
117120
mnemonicVar: 'RN_MNEMONIC_SWEEP',
@@ -169,14 +172,6 @@ describe('@migration - Migration from legacy RN app to native app', () => {
169172

170173
// Verify migration
171174
await verifyMigration(balance);
172-
await mineBlocks(1);
173-
if (driver.isIOS) {
174-
// Restore wallet again to verify mnemonic restoration works post-migration
175-
console.info('→ Restoring wallet again to verify mnemonic restoration post-migration...');
176-
await waitForBackup();
177-
await restoreWallet(mnemonic!);
178-
await verifyMigration(balance);
179-
}
180175
});
181176

182177
// --------------------------------------------------------------------------

0 commit comments

Comments
 (0)