forked from openmrs/openmrs-esm-form-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
34 lines (32 loc) · 862 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
34
import type { PlaywrightTestConfig } from '@playwright/test';
import { devices } from '@playwright/test';
import * as dotenv from 'dotenv';
dotenv.config();
// See https://playwright.dev/docs/test-configuration.
const config: PlaywrightTestConfig = {
testDir: './e2e/specs',
timeout: 3 * 60 * 1000,
expect: {
timeout: 20 * 1000,
},
workers: 1,
forbidOnly: !!process.env.CI,
retries: 0,
reporter: process.env.CI ? [['junit', { outputFile: 'results.xml' }], ['html']] : [['html']],
globalSetup: require.resolve('./e2e/core/global-setup'),
use: {
baseURL: `${process.env.E2E_BASE_URL}/spa/`,
locale: 'en-US',
storageState: 'e2e/storageState.json',
video: 'retain-on-failure',
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
},
},
],
};
export default config;