Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change timezone for Cypress in GitHub Action #587

Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
container:
image: cypress/browsers:node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1
options: --user 1001
env:
TZ: Europe/Copenhagen
steps:
- uses: actions/checkout@master
- name: Setup Node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe("Reservation details modal test", () => {
.find(".list-details")
.eq(0)
.find(".text-small-caption")
.should("have.text", "Your reservation expires 27-01-2023 22:37!");
.should("have.text", "Your reservation expires 27-01-2023 23:37!");

// ID 17 2.f. header "date of reservation"
cy.get(".modal-details__list")
Expand All @@ -227,7 +227,7 @@ describe("Reservation details modal test", () => {
.find(".list-details")
.eq(1)
.find(".text-small-caption")
.should("have.text", "16-08-2022 10:52");
.should("have.text", "16-08-2022 12:52");
});

it("It shows digital reservation details modal, material queued", () => {
Expand Down Expand Up @@ -328,7 +328,7 @@ describe("Reservation details modal test", () => {
.find(".list-details")
.eq(0)
.find(".text-small-caption")
.should("have.text", "Borrow before 27-01-2023 22:37");
.should("have.text", "Borrow before 27-01-2023 23:37");
});

it("It shows physical reservation details modal", () => {
Expand Down
Loading