forked from DRYTRIX/TimeTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.mjs
More file actions
25 lines (24 loc) · 872 Bytes
/
Copy pathplaywright.config.mjs
File metadata and controls
25 lines (24 loc) · 872 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
import { defineConfig, devices } from '@playwright/test';
/**
* Playwright configuration for TimeTracker end-to-end, CSP and accessibility checks.
*
* The app under test is expected to already be running at E2E_BASE_URL (CI starts it
* from the built Docker image so the assets under test are the ones that ship).
*/
export default defineConfig({
testDir: './tests/e2e',
timeout: 60_000,
expect: { timeout: 10_000 },
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: process.env.CI ? [['list'], ['html', { open: 'never' }]] : [['list']],
use: {
baseURL: process.env.E2E_BASE_URL || 'http://localhost:8080',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
ignoreHTTPSErrors: true,
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
});