forked from consensys-vertical-apps/tmpqachallenge1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
34 lines (32 loc) · 898 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 { defineConfig, devices } from '@playwright/test';
require('dotenv').config();
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: process.env.CI ? 2 : 1,
reporter: [
['list'],
['html', { outputFolder: 'test-results/e2e-html-report', open: 'never' }],
['junit', { outputFile: 'test-results/e2e-junit.xml' }],
],
outputDir: 'test-results/e2e-test-artifacts',
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.E2E_BASE_URL + '/',
screenshot: 'on',
video: 'on-first-retry',
trace: 'on-first-retry',
userAgent: 'Playwright E2E Tests',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
}
],
});