forked from oriontech-me/langflow-e2e
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
43 lines (37 loc) · 1.09 KB
/
Copy pathplaywright.config.ts
File metadata and controls
43 lines (37 loc) · 1.09 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
import { defineConfig, devices } from "@playwright/test";
import * as dotenv from "dotenv";
dotenv.config();
/**
* Base URL of the Langflow instance to test against.
* Override via env var:
* PLAYWRIGHT_BASE_URL=http://localhost:7860 npx playwright test
*/
const BASE_URL = process.env.PLAYWRIGHT_BASE_URL || "http://localhost:7860";
export default defineConfig({
testDir: "./tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 3,
workers: process.env.CI ? 2 : undefined,
timeout: 5 * 60 * 1000, // 5 minutes per test
reporter: process.env.CI ? "blob" : "html",
use: {
baseURL: BASE_URL,
actionTimeout: 20000,
trace: "on-first-retry",
screenshot: process.env.CI ? "only-on-failure" : "off",
video: process.env.CI ? "on-first-retry" : "off",
},
globalTeardown: require.resolve("./tests/globalTeardown.ts"),
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
contextOptions: {
permissions: ["clipboard-read", "clipboard-write"],
},
},
},
],
});