aa81b39600
Add playwright.config.ts with webServer configured to run build and preview on port 4173. Add e2e/smoke.spec.ts with 4 smoke tests: rel=me anchor presence, all identity links in HTML, canvas and HUD visibility, and reduced motion fallback rendering. Restructure App.tsx to render Scroller outside #demo div to fix selector ambiguity in e2e tests. Add test.exclude to vite.config.ts to prevent vitest from running playwright tests.
12 lines
272 B
TypeScript
12 lines
272 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: 'e2e',
|
|
use: { baseURL: 'http://localhost:4173' },
|
|
webServer: {
|
|
command: 'npm run build && npm run preview',
|
|
port: 4173,
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
})
|