-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
30 lines (29 loc) · 850 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
30 lines (29 loc) · 850 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
const { defineConfig, devices } = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests',
timeout: 60000,
fullyParallel: true,
forbidOnly: !!process.env.CI,
reporter: [['html', { outputFolder: './public/playwright-report', open: 'never' }]],
use: {
trace: 'on-first-retry',
},
projects: [
{
name: 'Desktop Chromium',
use: { ...devices['Desktop Chrome'], viewport: { width: 1920, height: 1080 } },
},
{
name: 'Laptop Chromium',
use: { ...devices['Desktop Chrome'], viewport: { width: 1366, height: 768 } },
},
{
name: 'Tablet Safari',
use: { ...devices['iPad (gen 7)'], viewport: { width: 768, height: 1024 } },
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'], viewport: { width: 375, height: 667 } },
},
],
});