Skip to content

Commit

Permalink
Confirm pickup changes before proceeding in reservation details test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kasperg committed Nov 14, 2023
1 parent fbc9765 commit bce4455
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit bce4455

Please sign in to comment.