-
Notifications
You must be signed in to change notification settings - Fork 0
/
playright.config.ts
41 lines (39 loc) · 989 Bytes
/
playright.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
import type { PlaywrightTestConfig } from "@playwright/test";
const config: PlaywrightTestConfig = {
webServer: {
command: "pnpm run dev",
port: 4321,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
use: {
baseURL: "http://localhost:4321",
viewport: { width: 480, height: 320 },
},
testDir: "./tests",
outputDir: "./tests/results",
timeout: 120 * 1000,
expect: {
timeout: 120 * 1000,
},
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: "html",
projects: [
{
name: "chromium",
use: { browserName: "chromium", viewport: { width: 480, height: 320 } },
},
{
name: "firefox",
use: { browserName: "firefox", viewport: { width: 480, height: 320 } },
},
{
name: "webkit",
use: { browserName: "webkit", viewport: { width: 480, height: 320 } },
},
],
};
export default config;