Skip to content

Commit

Permalink
Use getBySel to target remove-digital-reservation-button in Cypress
Browse files Browse the repository at this point in the history
In reservation-details.test
  • Loading branch information
Adamik10 committed Jan 17, 2024
1 parent 894d69f commit 390d3a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const ReservationDetailsRedirect: FC<
disabled={false}
onClick={() => openReservationDeleteModal(reservation)}
classNames={linkClassNames}
dataCy="remove-digital-reservation-button"
/>
<LinkButton
dataCy="go-to-ereolen-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ describe("Reservation details modal", () => {
.find(".text-small-caption")
.should("have.text", "16-08-2022 12:52");

cy.get(".modal")
.find("button.link-tag")
cy.getBySel("remove-digital-reservation-button")
.eq(0)
.should("have.text", "Remove your reservation")
.click();
Expand Down

0 comments on commit 390d3a4

Please sign in to comment.