Skip to content

Commit 79e3c3f

Browse files
committed
fix: flaky recover wallet test
1 parent 37537ca commit 79e3c3f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/app/playwright/e2e/RecoverWallet.test.ts

+9
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ test.describe('RecoverWallet', () => {
9191

9292
/** Confirm Mnemonic */
9393
const words = WORDS_24.split(' ');
94+
await expect
95+
.poll(
96+
async () => {
97+
const _locator = await page.locator('input').all();
98+
return inputs.length === words.length;
99+
},
100+
{ timeout: 1000 }
101+
)
102+
.toBeTruthy();
94103
const inputs = await page.locator('input').all();
95104
words.forEach((word, i) => {
96105
expect(inputs[i]).toHaveValue(word);

0 commit comments

Comments
 (0)