Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/cypress/e2e/ui/cacheDependencyAutocollectTest.cy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { addNode, deleteNode, publishAndWaitJobEnding } from "@jahia/cypress";
import { addSimplePage } from "../../utils/helpers";
import { GENERIC_SITE_KEY, JAHIA_CONTEXT } from "../../support/constants";
import { GENERIC_SITE_KEY } from "../../support/constants";

describe("Cache dependencies collected by the URL builder", () => {
const PAGE = "testAutocollectedCacheDependency";
Expand Down Expand Up @@ -97,9 +97,9 @@ describe("Cache dependencies collected by the URL builder", () => {

// Liveness: the rename has to have reached live, or "the opted-out view did not change"
// would pass simply because nothing happened at all.
cy.request(`${JAHIA_CONTEXT}/files/live${FILES}/${RENAMED}`)
.its("status")
.should("eq", 200);
// The URL is relative: Cypress appends it to `baseUrl`, which already carries the
// servlet context path. Prefixing JAHIA_CONTEXT here would double it.
cy.request(`/files/live${FILES}/${RENAMED}`).its("status").should("eq", 200);

renderLive().then((third) => {
expect(
Expand Down
Loading