From bce4455d76f1d3fec29c8ef16fc123477ce30790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Garn=C3=A6s?= Date: Tue, 14 Nov 2023 15:28:17 +0100 Subject: [PATCH] Confirm pickup changes before proceeding in reservation details test This makes the test more understandable. The only reason it has passed up until now is that the elements have been available under the modal. --- .../reservation-details/reservation-details.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/reservation-list/modal/reservation-details/reservation-details.test.ts b/src/apps/reservation-list/modal/reservation-details/reservation-details.test.ts index 3e6f70375c..aecef067a2 100644 --- a/src/apps/reservation-list/modal/reservation-details/reservation-details.test.ts +++ b/src/apps/reservation-list/modal/reservation-details/reservation-details.test.ts @@ -480,6 +480,11 @@ describe("Reservation details modal", () => { "DK-775120" ); + // ID 13 2.f.ii. the link "apply changes" + cy.getBySel("reservation-form-button").should("exist").click(); + + cy.getBySel("modal-cta-button").should("be.be.visible").click(); + // ID 13 2.f. header "Not interested after" cy.getBySel("reservation-form-list-item") .eq(2) @@ -492,11 +497,6 @@ describe("Reservation details modal", () => { .find(".text-small-caption") .should("contain.text", "21-09-2022"); - // ID 13 2.f.ii. the link "apply changes" - cy.getBySel("reservation-form-button").should("exist").click(); - - cy.getBySel("modal-cta-button").should("be.be.visible").click(); - // ID 15 2.a&b&c&d&e Dropdown with interest periods cy.getBySel("reservation-form-list-item") .eq(2)