27 lines
600 B
TypeScript
27 lines
600 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "tests/e2e",
|
|
timeout: 30_000,
|
|
expect: {
|
|
timeout: 5_000,
|
|
},
|
|
use: {
|
|
baseURL: "http://127.0.0.1:18082",
|
|
trace: "on-first-retry",
|
|
},
|
|
webServer: {
|
|
command:
|
|
"rm -rf data/e2e && pnpm build && go run ./apps/api/cmd/clickclack serve --addr 127.0.0.1:18082 --data ./data/e2e",
|
|
url: "http://127.0.0.1:18082",
|
|
reuseExistingServer: false,
|
|
timeout: 120_000,
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
});
|