Skip to content

Commit 8b6d268

Browse files
committed
fix: remove strictPort from E2E webServer to allow reusing dev server
- Update playwright.config.ts webServer command to use vite directly - Remove --strictPort flag to allow reuseExistingServer to work properly - E2E tests can now run while dev server is already running on port 5173
1 parent 2ccec37 commit 8b6d268

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ export default defineConfig({
6969
],
7070

7171
// Auto-start frontend if not running (optional)
72+
// Note: Uses vite directly without --strictPort to allow reusing existing server
7273
webServer: {
73-
command: "bun run dev",
74+
command: "FRONTEND_PORT=${FRONTEND_PORT:-5173} vite dev --port ${FRONTEND_PORT:-5173}",
7475
url: FRONTEND_URL,
7576
reuseExistingServer: true,
7677
timeout: 120_000,

0 commit comments

Comments
 (0)