From fd2c272824e29656f49f2f10d1740616b97390bb Mon Sep 17 00:00:00 2001 From: Kunal Date: Sat, 7 Feb 2026 17:46:47 +0000 Subject: [PATCH] chore(e2e): run Cypress in Chrome; use 127.0.0.1 baseUrl --- .github/workflows/ci.yml | 6 +++--- frontend/cypress.config.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a302d0a1..cd504121 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,9 +110,9 @@ jobs: CLERK_JWKS_URL: ${{ vars.CLERK_JWKS_URL }} run: | cd frontend - npm run dev -- --port 3000 & + npm run dev -- --hostname 127.0.0.1 --port 3000 & for i in {1..60}; do - if curl -sf http://localhost:3000/ > /dev/null; then exit 0; fi + if curl -sf http://127.0.0.1:3000/ > /dev/null; then exit 0; fi sleep 2 done echo "Frontend did not start" @@ -127,4 +127,4 @@ jobs: NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ vars.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }} run: | cd frontend - npm run e2e + npm run e2e -- --browser chrome diff --git a/frontend/cypress.config.ts b/frontend/cypress.config.ts index 377f873a..ba594bed 100644 --- a/frontend/cypress.config.ts +++ b/frontend/cypress.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from "cypress"; export default defineConfig({ e2e: { - baseUrl: "http://localhost:3000", + baseUrl: "http://127.0.0.1:3000", video: false, screenshotOnRunFailure: true, specPattern: "cypress/e2e/**/*.cy.{ts,tsx,js,jsx}",