Cherry-pick heuristics, manifest merge, global file search, scrollbar styling, and pytest/Playwright coverage unblock review and filtered export for mmetl.
37 lines
866 B
TypeScript
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}`,
|
|
},
|
|
},
|
|
});
|