Skip to content

Commit

Permalink
Make sure "Go to ereol" button has a data-cy prop for Cypress testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Nov 7, 2023
1 parent 369fe96 commit 7a6e7df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const ReservationDetailsRedirect: FC<
{t("reservationDetailsRemoveDigitalReservationText")}
</button>
<LinkButton
dataCy="go-to-ereolen-button"
size="small"
url={externalLink}
variant="filled"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ describe("Reservation details modal test", () => {
.eq(0)
.should("have.text", "Go to eReolen")
.should("have.attr", "href")
// ID 17 2.d.i. link to "ereolen.dk/user/me"
.should("include", "ereolen.dk/user/me");
// ID 17 2.d.i. link to "ereolen.dk"
.should("include", "ereolen.dk");

cy.get(".modal")
.find(".status-label")
Expand Down

0 comments on commit 7a6e7df

Please sign in to comment.