mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-03 17:54:05 +00:00
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
25 lines
568 B
TypeScript
25 lines
568 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
export const getBaseConfig = () =>
|
|
defineConfig({
|
|
testDir: "./tests",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: [["list"]],
|
|
outputDir: "/tmp/playwright-tests",
|
|
expect: {
|
|
timeout: 20000,
|
|
},
|
|
|
|
use: {
|
|
baseURL: process.env.AUTH_URL
|
|
? process.env.AUTH_URL
|
|
: "http://localhost:3000",
|
|
trace: "off",
|
|
screenshot: "off",
|
|
video: "off",
|
|
},
|
|
});
|