-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
29 lines (23 loc) · 848 Bytes
/
playwright.config.ts
File metadata and controls
29 lines (23 loc) · 848 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
// playwright.config.ts
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
// Look for test files in the "tests" directory, relative to this configuration file
testDir: 'playwright',
timeout: !process.env.CI ? 60 * 1000 : 10 * 1000,
// forbit test.only() on CI
forbidOnly: !!process.env.CI,
// Retry tests twice on CI
retries: !process.env.CI ? 0 : 2,
webServer: {
command: 'npx http-server ./src/aux-server/aux-web/dist --port 2999',
url: 'http://localhost:2999/playwright.html',
timeout: 60 * 1000,
reuseExistingServer: !process.env.CI,
},
use: {
baseURL: 'http://localhost:2999/playwright.html',
actionTimeout: 0,
trace: !process.env.CI ? 'on-first-retry' : 'off',
},
};
export default config;