-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
29 lines (26 loc) · 892 Bytes
/
playwright.config.ts
File metadata and controls
29 lines (26 loc) · 892 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
/* eslint-disable import/no-extraneous-dependencies,import/no-duplicates,import/no-restricted-paths */
import { defineConfig, devices } from "@playwright/test"
export default defineConfig({
testDir: "./e2e",
fullyParallel: true,
timeout: Number(process.env.PLAYWRIGHT_TIMEOUT) || 30_000,
expect: { timeout: Number(process.env.PLAYWRIGHT_EXPECT_TIMEOUT) || 5_000 },
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 1,
workers: process.env.CI ? 1 : undefined,
reporter: [["html", { port: 9229, host: "0.0.0.0" }], ["list"]],
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || "http://nginx:8063",
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "retain-on-failure",
ignoreHTTPSErrors: true,
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
webServer: undefined,
})