-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
45 lines (44 loc) · 974 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
45 lines (44 loc) · 974 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
44
45
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'Desktop Edge',
use: { ...devices['Desktop Edge'] },
},
{
name: 'Desktop Chrome',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'Desktop Firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'Desktop Safari',
use: { ...devices['Desktop Safari'] },
},
{
name: 'Pixel 7',
use: { ...devices['Pixel 7'] },
},
{
name: 'iPhone 15',
use: { ...devices['iPhone 15'] },
},
{
name: 'iPad Pro 11',
use: { ...devices['iPad Pro 11'] },
},
],
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',
},
});