Files
ResumeSite/tests/playwright.config.ts
T
cesnimda a10418ab93 fix: CV split-button height + LinkedIn redirect; tooling tidy
- CV split button: make the chevron <details> flex and the summary full-height so the
  toggle matches the primary button height (verified 39.1px == 39.1px)
- nginx: /Linkedin now 301s to the real profile (linkedin.com/in/connor-babbington)
- prettier-ignore .pnpm-store; gitignore .claude/settings.local.json; e2e port 4321->4399;
  dev preview autoPort

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 11:22:48 +02:00

25 lines
801 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
/*
E2E runs against the built static output served by `astro preview` (TECH_SPEC §9.3).
The relay is not required — the form spec mocks /api/contact.
*/
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? [['list'], ['html', { open: 'never' }]] : 'list',
use: {
baseURL: 'http://localhost:4399',
trace: 'on-first-retry',
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
webServer: {
command: 'pnpm -C ../site build && pnpm -C ../site preview --port 4399 --host',
url: 'http://localhost:4399/',
timeout: 180_000,
reuseExistingServer: !process.env.CI,
},
});