-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.js
More file actions
40 lines (39 loc) · 1.02 KB
/
playwright.config.js
File metadata and controls
40 lines (39 loc) · 1.02 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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: 'test',
testMatch: '**/*.tests.js',
reporter: [['list'], ['html']],
use: {
headless: true,
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// Chromium mobile emulation – catches bugs specific to Android/Brave-style
// browsers (e.g. the IME_ACTION_NEXT double-advance regression fixed in
// PR #112). Included in `npm test` (full matrix) and `npm run test:quick`
// (random-browser fast run) alike.
{
name: 'chromium-mobile',
use: { ...devices['Pixel 5'] },
},
// Also test for safari.
{
name: 'safari-mobile',
use: { ...devices['iPhone 12'] },
},
],
forbidOnly: !!process.env.CI,
});