| 1234567891011121314151617181920212223242526 |
- import { existsSync } from "node:fs";
- import { defineConfig } from "@playwright/test";
- const localChrome =
- "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
- export default defineConfig({
- testDir: "./tests",
- timeout: 30000,
- fullyParallel: true,
- use: {
- baseURL: "http://127.0.0.1:8081",
- headless: true,
- launchOptions: {
- executablePath:
- process.env.FRONTEND_CHROME_BIN ||
- (existsSync(localChrome) ? localChrome : undefined),
- },
- },
- webServer: {
- command: "../.venv/bin/python ../scripts/check_frontend.py",
- url: "http://127.0.0.1:8081",
- reuseExistingServer: false,
- timeout: 15000,
- },
- outputDir: "../.tmp/frontend_browser_tests",
- });
|