Skip to content

Commit f8e6352

Browse files
committed
fix a flaky test
1 parent b82665e commit f8e6352

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

e2e/specs/stateless/wrapName.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,16 @@ test('should calculate needed steps without localstorage', async ({
265265

266266
await page.waitForTimeout(10000)
267267

268-
await page.evaluate(() => localStorage.clear())
268+
await page.evaluate(() => window.localStorage.clear())
269+
await page.evaluate(() => window.sessionStorage.clear())
269270
await page.reload()
270271
await login.reconnect()
271272

272273
await morePage.wrapButton.click()
273274

274-
await expect(page.getByTestId('display-item-Step 1-normal')).toContainText('Migrate profile')
275+
await expect(page.getByTestId('display-item-Step 1-normal')).toContainText('Migrate profile', {
276+
timeout: 10000,
277+
})
275278
await expect(page.getByTestId('display-item-Step 2-normal')).toContainText('Wrap name')
276279

277280
await transactionModal.introButton.click()

0 commit comments

Comments
 (0)