test: timeout updated for E2E (#8351)

This commit is contained in:
Alejandro Bailo
2025-07-23 13:11:32 +02:00
committed by GitHub
parent 922f9d2f91
commit a6c88c0d9e
2 changed files with 8 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ export default defineConfig({
workers: process.env.CI ? 1 : undefined,
reporter: [["list"]],
outputDir: "/tmp/playwright-tests",
expect: {
timeout: 20000,
},
use: {
baseURL: "http://localhost:3000",

View File

@@ -196,6 +196,11 @@ test.describe("Accessibility", () => {
await page.keyboard.press("Tab"); // Show password button
await page.keyboard.press("Tab"); // Login button
if (process.env.NEXT_PUBLIC_IS_CLOUD_ENV === "true") {
await page.keyboard.press("Tab"); // Forgot password
}
await expect(page.getByRole("button", { name: "Log in" })).toBeFocused();
});