mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 13:23:05 +08:00
24 lines
557 B
TypeScript
24 lines
557 B
TypeScript
import { defineConfig } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
testMatch: '*.e2e.ts',
|
|
timeout: 30_000,
|
|
expect: { timeout: 5000 },
|
|
fullyParallel: false,
|
|
// Retries in CI only, so local runs surface real regressions instead of
|
|
// masking them.
|
|
retries: process.env.CI ? 2 : 0,
|
|
use: {
|
|
baseURL: process.env.BASE_URL || 'http://localhost:5173',
|
|
headless: true,
|
|
screenshot: 'only-on-failure',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { browserName: 'chromium' },
|
|
},
|
|
],
|
|
});
|