-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathplaywright.config.js
More file actions
34 lines (30 loc) · 887 Bytes
/
playwright.config.js
File metadata and controls
34 lines (30 loc) · 887 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
31
32
33
34
/* global process */
import { defineConfig } from '@playwright/test';
export default defineConfig({
timeout: 60_000,
retries: 1,
use: {
browserName: 'chromium',
headless: true,
baseURL: 'http://localhost:5174',
},
projects: [
{
name: 'browser-specs',
testDir: './test',
testMatch: ['browser.spec.js'],
},
{
name: 'e2e',
testDir: './test/e2e',
testMatch: ['**/*.spec.js'],
snapshotPathTemplate: '{testDir}/{testFileDir}/{testFileName}-snapshots/{arg}{ext}',
},
],
webServer: {
command: 'node node_modules/.bin/vite --config build/vite.test.config.js --port 5174',
url: 'http://localhost:5174/test/browser/index.html',
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
});