From e7ac1cc48a86e4ff004f95bfdf6c3ce5c0c1b033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Garn=C3=A6s?= Date: Tue, 14 Nov 2023 22:20:14 +0100 Subject: [PATCH] Add timestamp to deadline assertions to fix loan list tests Apparently this is rendered now so lets update the test accordingly. --- src/apps/loan-list/list/loan-list.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/loan-list/list/loan-list.test.ts b/src/apps/loan-list/list/loan-list.test.ts index f7415e6e5b..3c70879404 100644 --- a/src/apps/loan-list/list/loan-list.test.ts +++ b/src/apps/loan-list/list/loan-list.test.ts @@ -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)", () => {