2025-06-06 03:23:51 -07:00
|
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
|
import "dotenv/config";
|
2024-08-12 11:00:25 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* See https://playwright.dev/docs/test-configuration.
|
|
|
|
|
*/
|
|
|
|
|
export default defineConfig({
|
2025-06-06 03:23:51 -07:00
|
|
|
outputDir: "./.output",
|
|
|
|
|
timeout: 10000,
|
|
|
|
|
testDir: "./specs",
|
|
|
|
|
fullyParallel: false,
|
|
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
|
retries: process.env.CI ? 1 : 0,
|
|
|
|
|
workers: 1,
|
|
|
|
|
reporter: process.env.CI
|
|
|
|
|
? [["html", { outputFolder: ".report" }], ["github"]]
|
|
|
|
|
: [["line"], ["html", { open: "never", outputFolder: ".report" }]],
|
|
|
|
|
use: {
|
|
|
|
|
baseURL: process.env.APP_URL ?? "http://localhost:1411",
|
|
|
|
|
video: "retain-on-failure",
|
|
|
|
|
trace: "on-first-retry",
|
|
|
|
|
},
|
|
|
|
|
projects: [
|
|
|
|
|
{ name: "setup", testMatch: /.*\.setup\.ts/ },
|
|
|
|
|
{
|
|
|
|
|
name: "chromium",
|
|
|
|
|
use: { ...devices["Desktop Chrome"], storageState: ".auth/user.json" },
|
|
|
|
|
dependencies: ["setup"],
|
|
|
|
|
},
|
|
|
|
|
],
|
2024-08-12 11:00:25 +02:00
|
|
|
});
|