chore(e2e): run Cypress in Chrome; use 127.0.0.1 baseUrl
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user