2026-03-16 16:43:46 +01:00
|
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: "./tests/e2e",
|
2026-03-18 17:10:16 +01:00
|
|
|
testIgnore: ["**/native/**"],
|
2026-03-16 16:43:46 +01:00
|
|
|
timeout: 30_000,
|
|
|
|
|
expect: {
|
|
|
|
|
timeout: 5_000,
|
|
|
|
|
},
|
|
|
|
|
fullyParallel: true,
|
|
|
|
|
forbidOnly: !!process.env.CI,
|
2026-03-18 05:38:53 +01:00
|
|
|
retries: process.env.CI ? 2 : 1,
|
2026-03-16 16:43:46 +01:00
|
|
|
workers: process.env.CI ? 1 : undefined,
|
2026-03-18 05:38:53 +01:00
|
|
|
reporter: process.env.CI
|
|
|
|
|
? [["html", { open: "never" }], ["junit", { outputFile: "test-results/junit.xml" }]]
|
|
|
|
|
: "html",
|
2026-03-16 16:43:46 +01:00
|
|
|
|
|
|
|
|
use: {
|
|
|
|
|
baseURL: "http://localhost:1420",
|
2026-03-18 05:38:53 +01:00
|
|
|
actionTimeout: 10_000,
|
|
|
|
|
navigationTimeout: 15_000,
|
2026-03-16 16:43:46 +01:00
|
|
|
screenshot: "only-on-failure",
|
|
|
|
|
trace: "on-first-retry",
|
2026-03-18 05:38:53 +01:00
|
|
|
video: "on-first-retry",
|
|
|
|
|
contextOptions: { reducedMotion: "reduce" },
|
2026-03-16 16:43:46 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: "chromium",
|
|
|
|
|
use: { ...devices["Desktop Chrome"] },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
webServer: {
|
|
|
|
|
command: "npm run dev",
|
|
|
|
|
url: "http://localhost:1420",
|
|
|
|
|
reuseExistingServer: !process.env.CI,
|
2026-03-18 05:38:53 +01:00
|
|
|
timeout: 60_000,
|
2026-03-16 16:43:46 +01:00
|
|
|
},
|
|
|
|
|
});
|