mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-07-09 19:47:04 +00:00
29 lines
776 B
TypeScript
29 lines
776 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
// NOTE: no webServer / baseURL here. Each test boots its own backrest
|
|
// instance on a free port via the `backrest` fixture (see e2e/harness).
|
|
export default defineConfig({
|
|
testDir: './e2e/specs',
|
|
globalSetup: './e2e/global-setup.ts',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 4 : undefined,
|
|
timeout: 120_000,
|
|
expect: {
|
|
timeout: 15_000,
|
|
},
|
|
reporter: process.env.CI ? [['github'], ['html', { open: 'never' }]] : [['list']],
|
|
use: {
|
|
trace: 'on-first-retry',
|
|
video: 'retain-on-failure',
|
|
locale: 'en-US',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
});
|