-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaywright.config.ts
44 lines (43 loc) · 1.11 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
42
43
44
import { defineConfig, devices } from '@playwright/test';
import type { TestOptions } from './tests/vrt/index.ts';
export default defineConfig<TestOptions>({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// VRT
{
name: 'vrt-light',
testDir: './tests/vrt',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'vrt-dark',
testDir: './tests/vrt',
use: {
...devices['Desktop Chrome'],
mode: 'dark',
colorScheme: 'dark',
},
},
],
testDir: './tests/e2e',
use: {
baseURL: 'http://localhost:4321',
},
webServer: {
command: 'bun run preview',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
url: 'http://localhost:4321',
},
});