Align Cypress base URL and redirect test port

Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
2026-03-08 11:52:34 +08:00
parent 08c1adba37
commit 28c861ab0e
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ module.exports = defineConfig({
viewportWidth: 1280, viewportWidth: 1280,
viewportHeight:720, viewportHeight:720,
e2e: { e2e: {
baseUrl: "http://localhost:5173", baseUrl: "http://localhost:4173",
specPattern: "cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}", specPattern: "cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}",
}, },
includeShadowDom: true, includeShadowDom: true,

View File

@@ -11,7 +11,7 @@ describe('Paste URL login redirect', () => {
setupApiIntercepts(); setupApiIntercepts();
// Visit login page with a return-to query param (base64-encoded URL) // 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); const encodedUrl = btoa(targetUrl);
cy.visit(`/login?return-to=${encodedUrl}`); cy.visit(`/login?return-to=${encodedUrl}`);