-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
41 lines (39 loc) · 1 KB
/
playwright.config.ts
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
// playwright.config.ts
import { PlaywrightTestConfig, devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
// use: {
// trace: 'on',
// },
// reporter: 'html',
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// "iPhone 13 Pro" tests use WebKit browser.
{
name: 'iPhone 13 Pro',
use: {
browserName: 'webkit',
...devices['iPhone 13 Pro'],
},
},
// "Pixel 4 landscape" tests use Chromium browser.
{
name: 'Pixel 4 landscape',
use: {
browserName: 'chromium',
...devices['Pixel 4 landscape'],
},
},
],
};
export default config;