Files
coredns-web-ui/e2e/playwright.config.ts
bryanpedini cce17c5fa4
Test / test (push) Successful in 17m21s
Build and publish image / image (push) Successful in 9m19s
test(e2e): measure the performance budget after the other suites
2026-11-19 19:58:01 +01:00

39 lines
1.1 KiB
TypeScript

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2026 Bryan Joshua Pedini
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
globalSetup: './harness/global-setup.ts',
globalTeardown: './harness/global-teardown.ts',
fullyParallel: false,
workers: Number(process.env.E2E_WORKERS || 4),
retries: 0,
forbidOnly: true,
timeout: 180_000,
expect: { timeout: 15_000 },
reportSlowTests: null,
outputDir: './test-results',
reporter: [
['./harness/reporter.ts'],
['list'],
['json', { outputFile: './reports/results.json' }],
['junit', { outputFile: './reports/junit.xml' }],
['html', { open: 'never', outputFolder: './reports/html' }],
],
use: {
...devices['Desktop Chrome'],
viewport: { width: 1440, height: 900 },
trace: 'off',
screenshot: 'only-on-failure',
video: 'off',
actionTimeout: 20_000,
navigationTimeout: 30_000,
},
projects: [
{ name: 'chromium', testIgnore: /power\.spec\.ts$/ },
{ name: 'performance', testMatch: /power\.spec\.ts$/, dependencies: ['chromium'] },
],
});