-
Notifications
You must be signed in to change notification settings - Fork 210
Expand file tree
/
Copy pathplaywright.config.js
More file actions
31 lines (29 loc) · 1012 Bytes
/
playwright.config.js
File metadata and controls
31 lines (29 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const path = require("path");
const { defineConfig } = require("@playwright/test");
const repoRoot = __dirname;
const mockBin = path.join(repoRoot, "tests", "e2e", "bin");
const runsDir = path.join(repoRoot, ".agentflow", "e2e-runs");
module.exports = defineConfig({
testDir: path.join("tests", "e2e"),
timeout: 60_000,
expect: { timeout: 15_000 },
fullyParallel: false,
reporter: [["list"]],
use: {
baseURL: "http://127.0.0.1:8123",
headless: true,
},
webServer: {
command: `bash -lc 'rm -rf "${runsDir}" && mkdir -p "${runsDir}" && rm -f .e2e-flaky && . .venv/bin/activate && uvicorn agentflow.app:create_app --factory --host 127.0.0.1 --port 8123'`,
url: "http://127.0.0.1:8123/api/health",
cwd: repoRoot,
reuseExistingServer: true,
env: {
...process.env,
PATH: `${mockBin}:${process.env.PATH || ""}`,
AGENTFLOW_RUNS_DIR: runsDir,
AGENTFLOW_KIMI_MOCK_RESPONSE: "kimi mock review",
AGENTFLOW_MAX_CONCURRENT_RUNS: "2",
},
},
});