diff --git a/vuu-ui/cypress/e2e/layout-management/api/api.utils.ts b/vuu-ui/cypress/e2e/layout-management/api/api.utils.ts index 8e6b96575..e20eb4de7 100644 --- a/vuu-ui/cypress/e2e/layout-management/api/api.utils.ts +++ b/vuu-ui/cypress/e2e/layout-management/api/api.utils.ts @@ -7,10 +7,12 @@ export type LayoutResponseDto = { metadata: LayoutMetadata; }; -export const LAYOUT_API_BASE_URL = "http://localhost:8081/api"; +const LAYOUT_API_BASE_URL = "http://localhost:8081/api"; + export const APPLICATION_LAYOUT_URL = LAYOUT_API_BASE_URL + "/application-layouts/"; -export const USER_LAYOUT_URL = LAYOUT_API_BASE_URL + "/layouts/"; +export const USER_LAYOUT_URL = + LAYOUT_API_BASE_URL + "/layouts/"; export const TEST_LAYOUT_ID_ALIAS = "TEST_LAYOUT_ID"; export const DEFAULT_APPLICATION_LAYOUT_ALIAS = "DEFAULT_APPLICATION_LAYOUT"; diff --git a/vuu-ui/cypress/e2e/layout-management/api/user-layouts.cy.ts b/vuu-ui/cypress/e2e/layout-management/api/user-layouts.cy.ts index 0fae752c1..5800b612a 100644 --- a/vuu-ui/cypress/e2e/layout-management/api/user-layouts.cy.ts +++ b/vuu-ui/cypress/e2e/layout-management/api/user-layouts.cy.ts @@ -5,10 +5,10 @@ import { createLayout, deleteLayout, getLayout, - LAYOUT_API_BASE_URL, TEST_LAYOUT_ID_ALIAS, TEST_LAYOUT_JSON, TEST_METADATA_DTO, + USER_LAYOUT_URL, } from "./api.utils"; describe("User Layouts", () => { @@ -56,7 +56,7 @@ describe("User Layouts", () => { it("should return a 200", () => { cy.request({ method: "GET", - url: LAYOUT_API_BASE_URL + "/layouts/metadata", + url: USER_LAYOUT_URL + "metadata", }).then((response) => { expect(response.status).to.eq(200); expect(response.body).to.have.lengthOf(1); @@ -78,7 +78,7 @@ describe("User Layouts", () => { cy.request({ method: "PUT", url: - LAYOUT_API_BASE_URL + "/layouts/" + Cypress.env(TEST_LAYOUT_ID_ALIAS), + USER_LAYOUT_URL + Cypress.env(TEST_LAYOUT_ID_ALIAS), body: { metadata: TEST_METADATA_DTO, definition: { ...TEST_LAYOUT_JSON, type: "Column" }, @@ -101,7 +101,7 @@ describe("User Layouts", () => { cy.request({ method: "DELETE", url: - LAYOUT_API_BASE_URL + "/layouts/" + Cypress.env(TEST_LAYOUT_ID_ALIAS), + USER_LAYOUT_URL + Cypress.env(TEST_LAYOUT_ID_ALIAS), }) .then((response) => { expect(response.status).to.eq(204);