mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
31 lines
657 B
TypeScript
31 lines
657 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|||
|
|
|
||
|
|
const DOCS_PORT = 5173;
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: "./tests/e2e-docs",
|
||
|
|
timeout: 30_000,
|
||
|
|
expect: { timeout: 10_000 },
|
||
|
|
fullyParallel: true,
|
||
|
|
retries: 0,
|
||
|
|
workers: 1,
|
||
|
|
reporter: "html",
|
||
|
|
use: {
|
||
|
|
baseURL: `http://localhost:${DOCS_PORT}`,
|
||
|
|
screenshot: "only-on-failure",
|
||
|
|
trace: "retain-on-failure",
|
||
|
|
},
|
||
|
|
projects: [
|
||
|
|
{
|
||
|
|
name: "chromium",
|
||
|
|
use: { ...devices["Desktop Chrome"] },
|
||
|
|
},
|
||
|
|
],
|
||
|
|
webServer: {
|
||
|
|
command: "pnpm --filter @snapotter/docs docs:dev",
|
||
|
|
port: DOCS_PORT,
|
||
|
|
reuseExistingServer: !process.env.CI,
|
||
|
|
timeout: 60_000,
|
||
|
|
},
|
||
|
|
});
|