-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
39 lines (33 loc) · 874 Bytes
/
playwright.config.js
File metadata and controls
39 lines (33 loc) · 874 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
35
36
37
38
39
// @ts-check
import { defineConfig, devices } from '@playwright/test';
/**
* Playwright configuration for the CKP Ontology Browser.
*
* Starts a VitePress dev server on port 5173 and runs
* smoke tests against the /browse/ SPA.
*/
export default defineConfig({
testDir: './tests',
timeout: 60_000,
expect: { timeout: 10_000 },
/* Fail the build on CI if you accidentally left test.only in the source. */
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? 'github' : 'list',
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'npx vitepress dev docs --port 5173',
port: 5173,
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
});