-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
43 lines (40 loc) · 972 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
43 lines (40 loc) · 972 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
32
33
34
35
36
37
38
39
40
41
42
43
import path from "node:path";
import { defineConfig, devices } from "@playwright/test";
const DesktopChrome = {
name: "chrome-desktop",
device: {
...devices["Desktop Chrome"],
channel: "chromium",
},
};
const MobileChrome = {
name: "chrome-mobile",
device: {
...devices["Pixel 5"],
channel: "chromium",
},
};
const DesktopFirefox = {
name: "firefox-desktop",
device: {
...devices["Desktop Firefox"],
channel: "firefox",
},
};
export default defineConfig({
retries: 1,
workers: 2,
fullyParallel: true,
projects: [
...[DesktopChrome, MobileChrome, DesktopFirefox].map(({ name, device }) => ({
name: `${name}-spec`,
use: device,
testDir: path.join(import.meta.dirname, "tests/specs"),
})),
...[DesktopChrome, MobileChrome, DesktopFirefox].map(({ name, device }) => ({
name: `${name}-e2e`,
use: device,
testDir: path.join(import.meta.dirname, "tests/e2e"),
})),
],
});