Files
overlord/Overlord-Server/playwright.config.ts
T

24 lines
579 B
TypeScript
Raw Normal View History

import { defineConfig } from "@playwright/test";
const port = 5193;
const baseURL = `http://127.0.0.1:${port}`;
export default defineConfig({
testDir: "./test/e2e",
globalSetup: "./test/e2e/global-setup.ts",
fullyParallel: false,
workers: 1,
timeout: 30_000,
expect: { timeout: 7_500 },
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? "github" : "list",
use: {
baseURL,
browserName: "chromium",
ignoreHTTPSErrors: true,
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
});