From 5e0787bca585cd265752cad7e4829883491679a3 Mon Sep 17 00:00:00 2001 From: turtledreams Date: Tue, 5 Dec 2023 14:38:44 +0900 Subject: [PATCH] divided hc params --- cypress/e2e/remaining_requests.cy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/remaining_requests.cy.js b/cypress/e2e/remaining_requests.cy.js index 57fb2a5..3382b9d 100644 --- a/cypress/e2e/remaining_requests.cy.js +++ b/cypress/e2e/remaining_requests.cy.js @@ -19,7 +19,11 @@ describe("Remaining requests tests ", () => { // We will expect 4 requests: health check, begin_session, end_session, orientation hp.interceptAndCheckRequests(undefined, undefined, undefined, "?hc=*", "hc", (requestParams) => { - expect(JSON.parse(requestParams.get("hc"))).to.eql({ el: 0, wl: 1, sc: -1, em: "\"\"" }); + const params = JSON.parse(requestParams.get("hc")); + assert.isTrue(typeof params.el === "number"); + assert.isTrue(typeof params.wl === "number"); + assert.isTrue(typeof params.sc === "number"); + assert.isTrue(typeof params.em === "string"); expect(requestParams.get("rr")).to.equal(null); }); cy.wait(1000).then(() => {