Skip to content

Commit d4d236a

Browse files
test(fix): the autocollect liveness probe must not double the context path (#800)
1 parent c5c14c3 commit d4d236a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/cypress/e2e/ui/cacheDependencyAutocollectTest.cy.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { addNode, deleteNode, publishAndWaitJobEnding } from "@jahia/cypress";
22
import { addSimplePage } from "../../utils/helpers";
3-
import { GENERIC_SITE_KEY, JAHIA_CONTEXT } from "../../support/constants";
3+
import { GENERIC_SITE_KEY } from "../../support/constants";
44

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

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

104104
renderLive().then((third) => {
105105
expect(

0 commit comments

Comments
 (0)