-
-
Notifications
You must be signed in to change notification settings - Fork 258
/
playwright.config.js
41 lines (37 loc) · 1.03 KB
/
playwright.config.js
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
// @ts-check
import { defineConfig, devices } from "@playwright/test";
/**
* @see https://playwright.dev/docs/test-configuration
*/
export default defineConfig({
testDir: "./e2e",
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
retries: 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
reporter: "html",
use: {
baseURL: process.env.E2E_BASE_URL || "http://0.0.0.0:9000",
actionTimeout: 0,
trace: "on",
video: "on",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
outputDir: "e2e-results/",
/* Do not start the local web server when running against a target TinyPilot server. */
webServer: process.env.E2E_BASE_URL
? undefined
: {
command:
". venv/bin/activate && export PORT=9000 && ./dev-scripts/serve-dev",
url: "http://0.0.0.0:9000",
reuseExistingServer: !process.env.CI,
},
});