mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
Shared Claude Code translation pipeline (scripts/i18n, no API key) plus Astro/VitePress/Scalar i18n wiring. Landing and API reference translated into all 20 languages; docs i18n wiring + English source anchors. The translated docs markdown (apps/docs/<locale>/**, 3,620 files) follows in a companion PR because it exceeds GitHub's per-PR CI file limit.
32 lines
789 B
TypeScript
32 lines
789 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
const DOCS_PORT = 4173;
|
|
|
|
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:
|
|
"apps/api/node_modules/.bin/tsx tests/e2e-docs/fixtures/seed-de-locale.mjs && pnpm --filter @snapotter/docs docs:build && pnpm --filter @snapotter/docs docs:preview",
|
|
port: DOCS_PORT,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120_000,
|
|
},
|
|
});
|