forked from NASA-AMMOS/aerie-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
33 lines (31 loc) · 892 Bytes
/
playwright.config.ts
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
import type { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
reportSlowTests: {
max: 0,
threshold: 60000,
},
reporter: [
[process.env.CI ? 'github' : 'list'],
['html', { open: 'never', outputFile: 'index.html', outputFolder: 'e2e-test-results' }],
['json', { outputFile: 'e2e-test-results/json-results.json' }],
['junit', { outputFile: 'e2e-test-results/junit-results.xml' }],
],
retries: 0,
testDir: './e2e-tests',
use: {
baseURL: 'http://localhost:3000',
browserName: 'chromium',
trace: process.env.CI ? 'retain-on-failure' : 'off',
video: process.env.CI ? 'retain-on-failure' : 'off',
},
webServer: {
command: 'node build',
env: {
AUTH_TYPE: 'none',
ORIGIN: 'http://localhost:3000',
},
port: 3000,
},
};
export default config;