slack-sieve/playwright.config.ts
ilia 4b034d19f6
Some checks failed
CI / skip-ci-check (push) Successful in 4s
CI / secret-scan (push) Failing after 2s
CI / python-ci (push) Successful in 25s
Add triage tests, prepare-export, and UI fixes for Levkin migration.
Cherry-pick heuristics, manifest merge, global file search, scrollbar styling, and pytest/Playwright coverage unblock review and filtered export for mmetl.
2026-06-03 15:42:48 -04:00

37 lines
866 B
TypeScript

import { defineConfig } from "@playwright/test";
import path from "path";
const repo = __dirname;
const port = process.env.SLACK_IMPORT_PORT || "18765";
export default defineConfig({
testDir: "tests/e2e",
timeout: 30_000,
retries: process.env.CI ? 1 : 0,
use: {
baseURL: `http://127.0.0.1:${port}`,
trace: "on-first-retry",
},
webServer: {
command: [
"python3",
"server.py",
"--export",
path.join(repo, "tests/fixtures/mini-export"),
"--manifest",
path.join(repo, "tests/fixtures/test-manifest.json"),
"--host",
"127.0.0.1",
"--port",
port,
].join(" "),
url: `http://127.0.0.1:${port}/api/health`,
reuseExistingServer: !process.env.CI,
env: {
...process.env,
SLACK_IMPORT_QUIET: "1",
SLACK_REVIEW_URL: `http://127.0.0.1:${port}`,
},
},
});