-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
49 lines (47 loc) · 1.01 KB
/
playwright.config.ts
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
44
45
46
47
48
49
// https://playwright.dev/docs/test-configuration
import { defineConfig, devices } from "@playwright/test";
import { URL } from "./env";
export default defineConfig({
testDir: "tests",
outputDir: "playwright-results",
testMatch: "*tests/*.spec.ts",
testIgnore: "*tests/dummy",
fullyParallel: true,
reporter: [
[
"html",
{
open: process.env.CI ? "never" : "always",
},
],
],
maxFailures: process.env.CI ? 10 : undefined,
use: {
baseURL: URL,
},
webServer: {
command: "npm run dev",
url: URL,
reuseExistingServer: !process.env.CI,
},
// See different browsers to test here:
// https://playwright.dev/docs/browsers#configure-browsers
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
},
},
// {
// name: "firefox",
// use: {
// ...devices["Desktop Firefox"],
// },
// },
// {
// name: "webkit",
// use: { ...devices["Desktop Safari"] },
// },
],
});