File size: 727 Bytes
9580dce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import { defineConfig } from "@playwright/test";
// Dedicated E2E config for the Coding Training flow. Runs against a local
// production server on port 3101 and uses the pre-installed Chromium.
export default defineConfig({
testDir: "./e2e",
testMatch: "coding.spec.ts",
timeout: 60_000,
expect: { timeout: 10_000 },
fullyParallel: false,
workers: 1,
use: {
baseURL: "http://localhost:3101",
headless: true,
screenshot: "only-on-failure",
launchOptions: {
executablePath: "/opt/pw-browsers/chromium-1194/chrome-linux/chrome",
},
},
webServer: {
command: "npm run start -- -p 3101",
url: "http://localhost:3101",
reuseExistingServer: true,
timeout: 60_000,
},
});
|