-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathplaywright.config.js
44 lines (43 loc) · 1003 Bytes
/
playwright.config.js
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
/* global process */
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
workers: process.env.CI ? 1 : undefined,
ignoreSnapshots: !!process.env.CI,
projects: [
{
name: 'Chromium',
use: { ...devices['Desktop Chrome'] },
// Includes unit tests
},
{
name: 'Firefox',
use: { ...devices['Desktop Firefox'] },
testMatch: /e2e/,
},
{
name: 'Safari',
use: { ...devices['Desktop Safari'] },
testMatch: /e2e/,
},
{
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] },
testMatch: /e2e/,
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] },
testMatch: /e2e/,
},
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' },
testMatch: /e2e/,
},
{
name: 'Microsoft Edge',
use: { ...devices['Desktop Edge'], channel: 'msedge' },
testMatch: /e2e/,
},
],
});