Align Cypress base URL and redirect test port
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user