diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bc8b30..988f984 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,9 +105,11 @@ jobs: working-directory: frontend install-command: npm ci build: npm run build - start: npm start - wait-on: http://localhost:3000 + # Bind to loopback to avoid CI network flakiness. + start: npm start -- -H 127.0.0.1 -p 3000 + wait-on: http://127.0.0.1:3000 command: npm run e2e + browser: chrome env: NEXT_TELEMETRY_DISABLED: "1" # Force Clerk disabled in E2E to keep tests secretless/deterministic. diff --git a/frontend/cypress.config.ts b/frontend/cypress.config.ts index 377f873..218a506 100644 --- a/frontend/cypress.config.ts +++ b/frontend/cypress.config.ts @@ -2,7 +2,8 @@ import { defineConfig } from "cypress"; export default defineConfig({ e2e: { - baseUrl: "http://localhost:3000", + // Use loopback to avoid network/proxy flakiness in CI. + baseUrl: "http://127.0.0.1:3000", video: false, screenshotOnRunFailure: true, specPattern: "cypress/e2e/**/*.cy.{ts,tsx,js,jsx}",