fix: Resolve Playwright port conflict issue

- Set reuseExistingServer: true to avoid port conflicts
- Fix 'http://localhost:8001 is already used' error in CI
- Ensure Playwright tests can run after successful build
- Allow reuse of existing server in GitHub Actions environment
This commit is contained in:
Peter Hanssens
2025-09-23 19:50:48 +10:00
parent 66ee62c7ef
commit 5374e6f3d4

View File

@@ -195,7 +195,7 @@ export default defineConfig({
{
command: 'cd examples/comprehensive-demo && python3 -m http.server 8001',
port: 8001,
reuseExistingServer: !isCI,
reuseExistingServer: true, // Always reuse existing server to avoid port conflicts
timeout: 30 * 1000,
stdout: 'pipe',
stderr: 'pipe',