Skip to content

Commit 3836815

Browse files
committed
Increase Counterwallet import test timeout to 30s for CI runners
PBKDF2 key derivation (600K iterations) plus wallet context hydration can exceed 20s on slower CI runners. The test was timing out at exactly 20s waiting for the address to render after import.
1 parent 24421b1 commit 3836815

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

e2e/tests/address-type-matrix.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,15 @@ test.describe('Address Type Matrix - Counterwallet Wallet', () => {
279279
test('importing Counterwallet mnemonic creates Counterwallet wallet', async ({ extensionPage }) => {
280280
await importMnemonic(extensionPage, TEST_COUNTERWALLET_MNEMONIC, TEST_PASSWORD);
281281

282-
// Wait for wallet state to propagate after import
283-
// React state updates from createMnemonicWallet may still be pending after navigation
282+
// Wait for wallet state to propagate after import.
283+
// PBKDF2 key derivation (600K iterations) can take 10-15s on CI runners,
284+
// and the wallet context refresh adds more time after that.
284285
await extensionPage.waitForLoadState('networkidle');
285286

286287
// Wait for the address container to appear - this only renders when wallet data is ready
287288
// (not during "Loading wallet data..." or "No wallet unlocked" states)
288289
const addressContainer = extensionPage.locator('[aria-label="Current address"]');
289-
await expect(addressContainer).toBeVisible({ timeout: 20000 });
290+
await expect(addressContainer).toBeVisible({ timeout: 30000 });
290291

291292
// Now verify the address text matches expected format
292293
const address = await getCurrentDisplayedAddress(extensionPage);

0 commit comments

Comments
 (0)