mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-22 17:33:16 +01:00
30 lines
699 B
TypeScript
30 lines
699 B
TypeScript
import {env} from 'node:process';
|
|
import {defineConfig, devices} from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e/',
|
|
outputDir: './tests/e2e-output/',
|
|
testMatch: /.*\.test\.ts/,
|
|
forbidOnly: Boolean(env.CI),
|
|
reporter: 'list',
|
|
timeout: env.CI ? 6000 : 2000,
|
|
expect: {
|
|
timeout: env.CI ? 3000 : 1000,
|
|
},
|
|
use: {
|
|
baseURL: env.E2E_URL?.replace?.(/\/$/g, ''),
|
|
locale: 'en-US',
|
|
actionTimeout: env.CI ? 3000 : 1000,
|
|
navigationTimeout: env.CI ? 6000 : 2000,
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
permissions: ['clipboard-read', 'clipboard-write'],
|
|
},
|
|
},
|
|
],
|
|
});
|