From 28c861ab0e89e2b2ee1b001374a05c4738ea73d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 8 Mar 2026 11:52:34 +0800 Subject: [PATCH] Align Cypress base URL and redirect test port Co-Authored-By: Codex --- cypress.config.js | 2 +- cypress/e2e/pasteUrlLoginRedirect.cy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress.config.js b/cypress.config.js index 81ccad1..3f2d6e8 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -18,7 +18,7 @@ module.exports = defineConfig({ viewportWidth: 1280, viewportHeight:720, e2e: { - baseUrl: "http://localhost:5173", + baseUrl: "http://localhost:4173", specPattern: "cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}", }, includeShadowDom: true, diff --git a/cypress/e2e/pasteUrlLoginRedirect.cy.js b/cypress/e2e/pasteUrlLoginRedirect.cy.js index be03807..8fda038 100644 --- a/cypress/e2e/pasteUrlLoginRedirect.cy.js +++ b/cypress/e2e/pasteUrlLoginRedirect.cy.js @@ -11,7 +11,7 @@ describe('Paste URL login redirect', () => { setupApiIntercepts(); // Visit login page with a return-to query param (base64-encoded URL) - const targetUrl = 'http://localhost:5173/discover/conformance/log/1/conformance'; + const targetUrl = 'http://localhost:4173/discover/conformance/log/1/conformance'; const encodedUrl = btoa(targetUrl); cy.visit(`/login?return-to=${encodedUrl}`);