mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-21 10:17:38 +08:00
Reverts: #37298 Ref: https://github.com/go-gitea/gitea/actions/runs/24661464168/job/72108324223?pr=37312 WebKit on Linux has a long history of flakiness in Playwright CI runs, and the exact "WebKit encountered an internal error" class of failures has been reported repeatedly and closed without a real fix (typically stale/no-repro, or worked around by retries): - https://github.com/microsoft/playwright/issues/34450 - https://github.com/microsoft/playwright/issues/35773 - https://github.com/microsoft/playwright/issues/35870 - https://github.com/microsoft/playwright/issues/35293 - https://github.com/microsoft/playwright/issues/38838 Keeping chromium and firefox in the e2e matrix. --- This PR was written with the help of Claude Opus 4.7 Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
41 lines
903 B
TypeScript
41 lines
903 B
TypeScript
import {env} from 'node:process';
|
|
import {defineConfig, devices} from '@playwright/test';
|
|
|
|
const timeoutFactor = Number(env.GITEA_TEST_E2E_TIMEOUT_FACTOR) || 1;
|
|
const timeout = 5000 * timeoutFactor;
|
|
|
|
export default defineConfig({
|
|
workers: '50%',
|
|
fullyParallel: true,
|
|
testDir: './tests/e2e/',
|
|
outputDir: './tests/e2e-output/',
|
|
testMatch: /.*\.test\.ts/,
|
|
forbidOnly: Boolean(env.CI),
|
|
reporter: 'list',
|
|
timeout: 2 * timeout,
|
|
expect: {
|
|
timeout,
|
|
},
|
|
use: {
|
|
baseURL: env.GITEA_TEST_E2E_URL?.replace?.(/\/$/, ''),
|
|
locale: 'en-US',
|
|
actionTimeout: timeout,
|
|
navigationTimeout: 2 * timeout,
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
permissions: ['clipboard-read', 'clipboard-write'],
|
|
},
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
use: {
|
|
...devices['Desktop Firefox'],
|
|
},
|
|
},
|
|
],
|
|
});
|