ci(e2e): run Cypress in Chrome against 127.0.0.1

This commit is contained in:
Riya
2026-02-07 17:21:11 +00:00
parent 709cd07a72
commit 8660f0ffce
2 changed files with 6 additions and 3 deletions

View File

@@ -105,9 +105,11 @@ jobs:
working-directory: frontend working-directory: frontend
install-command: npm ci install-command: npm ci
build: npm run build build: npm run build
start: npm start # Bind to loopback to avoid CI network flakiness.
wait-on: http://localhost:3000 start: npm start -- -H 127.0.0.1 -p 3000
wait-on: http://127.0.0.1:3000
command: npm run e2e command: npm run e2e
browser: chrome
env: env:
NEXT_TELEMETRY_DISABLED: "1" NEXT_TELEMETRY_DISABLED: "1"
# Force Clerk disabled in E2E to keep tests secretless/deterministic. # Force Clerk disabled in E2E to keep tests secretless/deterministic.

View File

@@ -2,7 +2,8 @@ import { defineConfig } from "cypress";
export default defineConfig({ export default defineConfig({
e2e: { e2e: {
baseUrl: "http://localhost:3000", // Use loopback to avoid network/proxy flakiness in CI.
baseUrl: "http://127.0.0.1:3000",
video: false, video: false,
screenshotOnRunFailure: true, screenshotOnRunFailure: true,
specPattern: "cypress/e2e/**/*.cy.{ts,tsx,js,jsx}", specPattern: "cypress/e2e/**/*.cy.{ts,tsx,js,jsx}",