-
Notifications
You must be signed in to change notification settings - Fork 1
/
playwright.config.ts
35 lines (32 loc) · 881 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
35
import { devices, PlaywrightTestConfig } from '@playwright/test';
import * as dotenv from 'dotenv';
dotenv.config();
const config: PlaywrightTestConfig = {
testDir: './e2e/tests',
timeout: 3 * 60 * 1000,
expect: {
timeout: 40 * 1000,
},
fullyParallel: true,
forbidOnly: !!process.env.CI,
workers: process.env.CI ? 1 : 1,
retries: 0,
reporter: process.env.CI ? [['junit', { outputFile: 'results.xml' }], ['html']] : [['html']],
globalSetup: require.resolve('./e2e/utils/configs/globalSetup'),
use: {
baseURL: `${process.env.O3_URL_DEV}/spa/`,
storageState: 'e2e/storageState.json',
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chromium'],
viewport: { width: 1920, height: 1080 },
screenshot: 'only-on-failure',
video: 'on'
},
},
],
};
export default config;