-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
32 lines (30 loc) · 826 Bytes
/
playwright.config.ts
File metadata and controls
32 lines (30 loc) · 826 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
import { defineConfig, devices } from '@playwright/test';
import fieldnotesConfig from './fieldnotes.config.json' with { type: 'json' };
// Strip trailing slash so we can append it consistently below.
const base = fieldnotesConfig.base.replace(/\/$/, '');
const devUrl = `http://127.0.0.1:4321${base}/`;
export default defineConfig({
testDir: './tests',
testMatch: ['a11y.spec.ts'],
fullyParallel: true,
reporter: 'list',
timeout: 15_000,
use: {
baseURL: devUrl,
trace: 'on-first-retry',
actionTimeout: 15_000,
navigationTimeout: 15_000,
},
webServer: {
command: 'npx astro dev --host 127.0.0.1 --port 4321',
url: devUrl,
reuseExistingServer: true,
timeout: 15_000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});