27 lines
526 B
TypeScript
27 lines
526 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
const baseURL = process.env.E2E_BASE_URL ?? "http://localhost:8080";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
timeout: 60_000,
|
|
expect: {
|
|
timeout: 10_000,
|
|
},
|
|
fullyParallel: false,
|
|
retries: 0,
|
|
reporter: [["list"]],
|
|
use: {
|
|
baseURL,
|
|
trace: "on-first-retry",
|
|
screenshot: "only-on-failure",
|
|
video: "retain-on-failure",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
});
|