-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
36 lines (34 loc) · 992 Bytes
/
playwright.config.ts
File metadata and controls
36 lines (34 loc) · 992 Bytes
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 } from '@playwright/test'
import type { TestOptions } from './tests-e2e/specs/utils.ts'
export default defineConfig<TestOptions>({
testDir: 'tests-e2e',
outputDir: 'tests-e2e/results',
forbidOnly: !!process.env.CI,
workers: process.env.CI
? // Based on specs defined in https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job#standard-github-hosted-runners-for-public-repositories
3
: undefined,
maxFailures: 0,
retries: process.env.CI ? 2 : 0,
timeout: process.env.CI ? 45_000 : 30_000,
reporter: [
['list'],
['html', { open: 'never', outputFolder: 'tests-e2e/playwright-report' }],
],
projects: [
{
name: 'smokescreen',
testMatch: 'specs/smokescreen.spec.ts',
},
{
name: 'onboarding',
testMatch: 'specs/onboarding.spec.ts',
dependencies: ['smokescreen'],
},
{
name: 'app',
testMatch: 'specs/app/**/*.spec.ts',
dependencies: ['smokescreen'],
},
],
})