-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
36 lines (33 loc) · 1.13 KB
/
playwright.config.ts
File metadata and controls
36 lines (33 loc) · 1.13 KB
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
36
import { defineConfig, devices } from '@playwright/test';
import dotenv from 'dotenv';
/**
* See https://playwright.dev/docs/test-configuration.
*/
// Load .env file
dotenv.config();
export default defineConfig({
timeout: 2 * 60 * 1000,
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry */
retries: 0,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
/* Thanks to link for config settings: https://ultimateqa.com/playwright-reporters-how-to-integrate-with-azure-devops-pipelines/*/
reporter: [['html', {open: 'never'}],['junit', { outputFile: 'test-results/results.xml' }]],
use: {
/* Maximum time each action such as `click()` can take.
Defaults to 0 (no limit). */
actionTimeout: 60 * 1000,
navigationTimeout: 60 * 1000,
/* Collect trace when retrying the failed test.
See https://playwright.dev/docs/trace-viewer */
trace: 'on',
screenshot: 'only-on-failure',
video: {
mode: 'on'
},
headless: true
},
globalSetup: require.resolve('./global-setup')
});