diff --git a/tests/e2e/webauthn.test.e2e.ts b/tests/e2e/webauthn.test.e2e.ts index d4b81621d2..ab661a6207 100644 --- a/tests/e2e/webauthn.test.e2e.ts +++ b/tests/e2e/webauthn.test.e2e.ts @@ -38,9 +38,10 @@ test('WebAuthn register & login flow', async ({browser, request}, workerInfo) => await page.getByText('Add security key').click(); // Logout. + await page.locator('div[aria-label="Profile and settings…"]').click(); + await page.getByText('Sign out').click(); await expect(async () => { - await page.locator('div[aria-label="Profile and settings…"]').click(); - await page.getByText('Sign out').click(); + await page.waitForURL(`${workerInfo.project.use.baseURL}/`); }).toPass(); // Login.