snapshot of https://github.com/raimohanska/ourboard.git (master, 2026-09-23; blobs > 131072B omitted)
This commit is contained in:
30
playwright.config.ts
Normal file
30
playwright.config.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { PlaywrightTestConfig, devices } from "@playwright/test"
|
||||
|
||||
const ci = process.env.CI === "true"
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
testDir: "playwright",
|
||||
outputDir: "playwright/results",
|
||||
fullyParallel: true,
|
||||
workers: ci ? 2 : 4,
|
||||
forbidOnly: ci,
|
||||
timeout: 60000, // Timeout per test file (default 30000)
|
||||
retries: ci ? 2 : 0,
|
||||
use: {
|
||||
baseURL: "http://localhost:1337",
|
||||
actionTimeout: 15000,
|
||||
trace: "retain-on-failure",
|
||||
},
|
||||
reporter: ci ? "github" : "line",
|
||||
projects: [
|
||||
{
|
||||
name: "chromium",
|
||||
use: { ...devices["Desktop Chrome"] },
|
||||
},
|
||||
{
|
||||
name: "firefox",
|
||||
use: { ...devices["Desktop Firefox"] },
|
||||
},
|
||||
],
|
||||
}
|
||||
export default config
|
||||
Reference in New Issue
Block a user