mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
test: timeout updated for E2E (#8351)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user