forked from runtipi/runtipi-appstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
31 lines (30 loc) · 1.02 KB
/
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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
// Sign up to tipi before running
globalSetup: require.resolve('./e2e/helpers/helpers'),
// Run tests in files in parallel
testDir: './e2e',
// Fail the build on CI if you accidentally left test.only in the source code.
fullyParallel: false,
// Retry on CI only
forbidOnly: !!process.env.CI,
// Opt out of parallel tests on CI.
retries: process.env.CI ? 2 : 0,
// Reporter to use. See https://playwright.dev/docs/test-reporter
workers: process.env.CI ? 1 : undefined,
// Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions.
reporter: 'html',
use: {
// Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer
trace: 'on-first-retry',
// Enable video
video: 'on',
},
// No need for multiple browsers to just take a screenshot
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});