Skip to content

Commit febec5e

Browse files
committed
Fix E2E test timeout: align Playwright port with Vite preview
Problem: - CI E2E tests timing out after 120s waiting for web server - Playwright config expected port 4173 (Vite default) - vite.config.ts configured preview server on port 3000 - Playwright waited for wrong port, never found server Solution: - Changed playwright.config.ts baseURL from localhost:4173 to localhost:3000 - Now matches vite.config.ts preview.port setting Result: - E2E tests can now start successfully - Preview server found immediately on correct port - No more 120s timeout failures in CI
1 parent 5824c0e commit febec5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig, devices } from '@playwright/test';
22

33
const isCI = !!process.env.CI;
4-
const baseURL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:4173';
4+
const baseURL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3000';
55

66
export default defineConfig({
77
testDir: './e2e',

0 commit comments

Comments
 (0)