Skip to content

Commit 3e26193

Browse files
committed
Disable e2e tests
1 parent 22451bf commit 3e26193

File tree

2 files changed

+31
-14
lines changed

2 files changed

+31
-14
lines changed

playwright.config.ts

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,43 @@ export default defineConfig<PluginOptions>({
77
fullyParallel: false,
88
forbidOnly: !!process.env.CI,
99
retries: process.env.CI ? 3 : 0,
10-
workers: 2,
10+
workers: 1,
1111
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
1212
reporter: 'list',
1313
use: {
1414
trace: 'retain-on-failure',
1515
video: 'retain-on-failure',
1616
screenshot: 'only-on-failure',
1717
viewport: { width: 1920, height: 1080 },
18+
baseURL: process.env.PLAYWRIGHT_TO_GRAFANA_URL || 'http://localhost:3003',
19+
grafanaAPICredentials: {
20+
user: process.env.GRAFANA_USER || 'admin',
21+
password: process.env.GRAFANA_PASSWORD || 'password',
22+
},
1823
},
1924
projects: [
2025
{
2126
name: 'e2e tests',
2227
testDir: './tests/e2e/tests',
23-
testMatch: ['**/*.test.ts'],
24-
dependencies: ['setup'],
25-
},
26-
{
27-
name: 'setup',
28-
testDir: './tests/e2e/tests',
29-
testMatch: 'global.setup.ts',
30-
teardown: 'tearDown',
31-
},
32-
{
33-
name: 'tearDown',
34-
testDir: './tests/e2e/tests',
35-
testMatch: 'global.teardown.ts',
28+
testMatch: ['**/disabled.test.ts'],
3629
},
30+
31+
// {
32+
// name: 'e2e tests',
33+
// testDir: './tests/e2e/tests',
34+
// testMatch: ['**/*.test.ts'],
35+
// dependencies: ['setup'],
36+
// },
37+
// {
38+
// name: 'setup',
39+
// testDir: './tests/e2e/tests',
40+
// testMatch: 'global.setup.ts',
41+
// teardown: 'tearDown',
42+
// },
43+
// {
44+
// name: 'tearDown',
45+
// testDir: './tests/e2e/tests',
46+
// testMatch: 'global.teardown.ts',
47+
// },
3748
],
3849
});

tests/e2e/tests/disabled.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @ts-check
2+
import { test } from '@playwright/test';
3+
4+
test('*** E2E TESTS ARE DISABLED ***', async () => {
5+
console.warn('⚠️⚠️⚠️ E2E TESTS ARE DISABLED ⚠️⚠️⚠️');
6+
});

0 commit comments

Comments
 (0)