-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathplaywright.config.ts
49 lines (47 loc) · 1.35 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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: 1,
/* 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 },
baseURL: process.env.PLAYWRIGHT_TO_GRAFANA_URL || 'http://localhost:3003',
grafanaAPICredentials: {
user: process.env.GRAFANA_USER || 'admin',
password: process.env.GRAFANA_PASSWORD || 'password',
},
},
projects: [
{
name: 'e2e tests',
testDir: './tests/e2e/tests',
testMatch: ['**/disabled.test.ts'],
},
// {
// 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',
// },
],
});