-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
90 lines (89 loc) · 1.67 KB
/
Copy pathplaywright.config.js
File metadata and controls
90 lines (89 loc) · 1.67 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { defineConfig, devices } from '@playwright/test';
// eslint-disable-next-line no-restricted-exports
export default defineConfig({
projects: [
{
name: 'Desktop Edge',
use: {
...devices['Desktop Edge'],
viewport: {
width: 1920,
height: 1080,
},
},
},
{
name: 'Desktop Chrome',
use: {
...devices['Desktop Chrome'],
viewport: {
width: 1920,
height: 1080,
},
},
},
{
name: 'Desktop Firefox',
use: {
...devices['Desktop Firefox'],
viewport: {
width: 1920,
height: 1080,
},
},
},
{
name: 'Desktop Safari',
use: {
...devices['Desktop Safari'],
viewport: {
width: 1920,
height: 1080,
},
},
},
{
name: 'Pixel 7',
use: {
...devices['Pixel 7'],
viewport: {
width: 384,
height: 824,
},
},
},
{
name: 'iPhone 15',
use: {
...devices['iPhone 15'],
viewport: {
width: 384,
height: 824,
},
},
},
{
name: 'iPad Pro 11',
use: {
...devices['iPad Pro 11'],
viewport: {
width: 768,
height: 1024,
},
},
},
],
webServer: {
command: 'npm run playwright:start',
url: 'http://localhost:3000/webpack-dev-server',
reuseExistingServer: true,
timeout: 5 * 60 * 1000,
},
use: {
baseURL: 'http://localhost:3000',
locale: 'en',
screenshot: 'only-on-failure',
},
timeout: 5 * 60 * 1000,
retries: 2,
});