-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
53 lines (52 loc) · 1.23 KB
/
Copy pathplaywright.config.ts
File metadata and controls
53 lines (52 loc) · 1.23 KB
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
50
51
52
53
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
use: {
baseURL: "http://127.0.0.1:3000",
},
webServer: {
command: "npm run dev",
url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI,
},
projects: [
{
name: "desktop-chromium",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1280, height: 800 },
},
},
{
name: "pixel-7",
use: {
...devices["Pixel 7"],
viewport: { width: 360, height: 640 },
isMobile: true,
hasTouch: true,
},
},
{
name: "iphone-14",
use: {
browserName: "chromium",
viewport: { width: 390, height: 844 },
userAgent:
"Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1",
deviceScaleFactor: 3,
isMobile: true,
hasTouch: true,
},
},
{
name: "ipad-mini",
use: {
browserName: "chromium",
viewport: { width: 768, height: 1024 },
deviceScaleFactor: 2,
isMobile: true,
hasTouch: true,
},
},
],
});