Skip to content

Commit

Permalink
Add timestamp to deadline assertions to fix loan list tests
Browse files Browse the repository at this point in the history
Apparently this is rendered now so lets update the test accordingly.
  • Loading branch information
kasperg committed Nov 14, 2023
1 parent 59761ba commit e7ac1cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/loan-list/list/loan-list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,21 +551,21 @@ describe("Loan list", () => {
.find(".list-reservation")
.eq(0)
.find(".list-reservation__deadline p")
.should("have.text", "Due date 24-10-2022");
.should("have.text", "Due date 24-10-2022 08:32");

cy.get(".list-reservation-container")
.eq(1)
.find(".list-reservation")
.eq(2)
.find(".list-reservation__deadline p")
.should("have.text", "Due date 28-10-2022");
.should("have.text", "Due date 28-10-2022 08:32");

cy.get(".list-reservation-container")
.eq(1)
.find(".list-reservation")
.eq(2)
.find(".list-reservation__deadline p")
.should("have.text", "Due date 28-10-2022");
.should("have.text", "Due date 28-10-2022 08:32");
});

it("It opens loans group modal (physical)", () => {
Expand Down

0 comments on commit e7ac1cc

Please sign in to comment.