Files
hkuds--deeptutor/web/playwright.config.ts
wehub-resource-sync e4dcfc49aa
Tests / Lint and Format (push) Waiting to run
Tests / Web Node Tests (push) Waiting to run
Tests / Import Check (Python 3.11) (push) Waiting to run
Tests / Import Check (Python 3.12) (push) Waiting to run
Tests / Import Check (Python 3.13) (push) Waiting to run
Tests / Import Check (Python 3.14) (push) Waiting to run
Tests / Python Tests (Python 3.11) (push) Blocked by required conditions
Tests / Python Tests (Python 3.12) (push) Blocked by required conditions
Tests / Python Tests (Python 3.13) (push) Blocked by required conditions
Tests / Python Tests (Python 3.14) (push) Blocked by required conditions
Tests / Test Summary (push) Blocked by required conditions
chore: import upstream snapshot with attribution
2026-07-13 13:00:43 +08:00

28 lines
671 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
const BASE_URL =
process.env.WEB_BASE_URL ||
process.env.NEXT_PUBLIC_API_BASE ||
"http://localhost:3000";
const SERIAL_MODE = process.env.PW_SERIAL === "1";
export default defineConfig({
testDir: "./tests",
fullyParallel: !SERIAL_MODE,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: SERIAL_MODE ? 1 : undefined,
reporter: [["html", { open: "never" }], ["list"]],
use: {
baseURL: BASE_URL,
trace: "on-first-retry",
},
projects: [
{
name: "ui-audit",
testMatch: "**/*.audit.ts",
use: { ...devices["Desktop Chrome"] },
},
],
});