Skip to content

Commit

Permalink
test(ci): fix failing tests in CI
Browse files Browse the repository at this point in the history
A `RangeError: Incorrect locale information provided` was thrown.
  • Loading branch information
cailloumajor committed Sep 18, 2023
1 parent 4324d55 commit a4b1e82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"serve:e2e": "quasar build --debug && node integration/e2e-tests-server.mjs",
"test:e2e": "start-test serve:e2e http-get://localhost:9090 \"cypress open --e2e\"",
"test:e2e:ci": "start-test serve:e2e http-get://localhost:9090 \"cypress run --e2e\"",
"test:component": "cross-env NODE_ENV=test TZ=Etc/GMT+3 cypress open --component",
"test:component:ci": "cross-env NODE_ENV=test TZ=Etc/GMT+3 cypress run --component"
"test:component": "cross-env NODE_ENV=test TZ=UTC cypress open --component",
"test:component:ci": "cross-env NODE_ENV=test TZ=UTC cypress run --component"
},
"dependencies": {
"@cailloumajor/frontend-utils-wasm": "3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/__tests__/LineDashboard.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ describe("LineDashboard", () => {

cy.wait("@performance-request")
.its("request.headers")
.should("include", { "client-timezone": "Etc/GMT+3" })
.should("include", { "client-timezone": "UTC" })
})

it("sets the metric text and color", () => {
Expand Down

0 comments on commit a4b1e82

Please sign in to comment.