Files
SnapOtter/playwright.landing.config.ts
T
SnapOtter 5c8ecc7b2b fix: resolve e2e test failures for landing and docs suites
- Change landing e2e port from 1350 to 4350 (avoids Docker conflict)
- Fix strict mode violations in docs tests (use heading roles, exact matches)
- Fix VitePress footer visibility (use DOM queries for hidden footer)
- Fix theme toggle (use evaluate click for CSS-hidden switch)
- Fix landing subpage tests (use heading roles for Privacy/Terms)
2026-04-27 22:34:11 +08:00

31 lines
681 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
const LANDING_PORT = 4350;
export default defineConfig({
testDir: "./tests/e2e-landing",
timeout: 30_000,
expect: { timeout: 10_000 },
fullyParallel: true,
retries: 0,
workers: 1,
reporter: "html",
use: {
baseURL: `http://localhost:${LANDING_PORT}`,
screenshot: "only-on-failure",
trace: "retain-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
webServer: {
command: `cd apps/landing && npx next dev -p ${LANDING_PORT}`,
port: LANDING_PORT,
reuseExistingServer: !process.env.CI,
timeout: 60_000,
},
});