Page tests: serve on 127.0.0.1, where localhost resolves to ::1 only

This commit is contained in:
Roberto Treviño
2026-11-25 11:06:53 -06:00
parent cd7bbaf11a
commit 9fc0666d66
+3 -1
View File
@@ -15,7 +15,9 @@ export default defineConfig({
actionTimeout: 60_000, // a stuck step fails, not the whole run
},
webServer: {
command: 'npx ng serve --port 4310 --proxy-config proxy.e2e.mjs',
// IPv4 explicitly: `localhost` may resolve to ::1 only (CI containers), where the url below never answers.
command: 'npx ng serve --host 127.0.0.1 --port 4310 --proxy-config proxy.e2e.mjs',
env: { NG_CLI_ANALYTICS: 'false' },
url: 'http://127.0.0.1:4310',
timeout: 180_000,
reuseExistingServer: false,