From e8f5090acc49bd1682ec375f8af484db7519d15d Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 19 Jul 2023 07:19:16 +0100 Subject: [PATCH] Fix: Flaky 2FA test due to waiting redundant Enter (#10236) --- apps/web/playwright/login.2fa.e2e.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/web/playwright/login.2fa.e2e.ts b/apps/web/playwright/login.2fa.e2e.ts index 5c8f9db4be..aebba89b7b 100644 --- a/apps/web/playwright/login.2fa.e2e.ts +++ b/apps/web/playwright/login.2fa.e2e.ts @@ -36,7 +36,6 @@ test.describe("2FA Tests", async () => { */ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion await fillOtp({ page, secret: "123456", noRetry: true }); - await page.press('input[name="2fa6"]', "Enter"); await expect(page.locator('[data-testid="error-submitting-code"]')).toBeVisible(); await fillOtp({ @@ -44,7 +43,6 @@ test.describe("2FA Tests", async () => { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion secret: secret!, }); - await page.press('input[name="2fa6"]', "Enter"); await expect(page.locator(`[data-testid=two-factor-switch][data-state="checked"]`)).toBeVisible();