29 lines
844 B
JavaScript
29 lines
844 B
JavaScript
import { defineConfig } from "@playwright/test";
|
|
|
|
// Separate dev copy + synthetic Core. Never runs a production build or uses
|
|
// the developer's .env, real Core, accounts, Chrome profile or preview port.
|
|
export default defineConfig({
|
|
testDir: "./tests/session",
|
|
outputDir: "test-results/session",
|
|
workers: 1,
|
|
retries: 0,
|
|
timeout: 60000,
|
|
expect: { timeout: 15000 },
|
|
reporter: "list",
|
|
use: {
|
|
baseURL: "http://localhost:17323",
|
|
channel: "chrome",
|
|
headless: true,
|
|
launchOptions: { args: ["--no-proxy-server"] },
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure",
|
|
},
|
|
webServer: {
|
|
command: "node tests/fixtures/session-app.mjs",
|
|
url: "http://localhost:17323/login",
|
|
reuseExistingServer: false,
|
|
timeout: 120000,
|
|
gracefulShutdown: { signal: "SIGTERM", timeout: 15000 },
|
|
},
|
|
});
|