-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathplaywright.config.ts
38 lines (37 loc) · 990 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
36
37
38
import type { PluginOptions } from '@grafana/plugin-e2e';
import { defineConfig, devices } from '@playwright/test';
export default defineConfig<PluginOptions>({
testDir: './tests/e2e/tests',
outputDir: './tests/results',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 3 : 0,
workers: 2,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'list',
use: {
trace: 'retain-on-failure',
video: 'retain-on-failure',
screenshot: 'only-on-failure',
viewport: { width: 1920, height: 1080 },
},
projects: [
{
name: 'e2e tests',
testDir: './tests/e2e/tests',
testMatch: ['**/*.test.ts'],
dependencies: ['setup'],
},
{
name: 'setup',
testDir: './tests/e2e/tests',
testMatch: 'global.setup.ts',
teardown: 'tearDown',
},
{
name: 'tearDown',
testDir: './tests/e2e/tests',
testMatch: 'global.teardown.ts',
},
],
});