Skip to content

Commit

Permalink
divided hc params
Browse files Browse the repository at this point in the history
  • Loading branch information
turtledreams committed Dec 5, 2023
1 parent 083b352 commit 5e0787b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/e2e/remaining_requests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 5e0787b

Please sign in to comment.