photos/playwright.config.ts
Andras Schmelczer 8dbea46ddb
All checks were successful
Check & deploy / validate (push) Successful in 1m45s
Check & deploy / deploy (push) Has been skipped
Reuse published photo variants and deploy the validated build
2026-11-10 20:55:14 +00:00

25 lines
609 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: 'e2e',
timeout: 30_000,
use: {
baseURL: 'http://127.0.0.1:4173',
trace: 'on-first-retry',
},
webServer: {
command:
process.env.PLAYWRIGHT_USE_EXISTING_BUILD === '1'
? 'npx vite preview --host 127.0.0.1'
: 'npm run build && npx vite preview --host 127.0.0.1',
url: 'http://127.0.0.1:4173',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});