Skip to content

Commit

Permalink
Add dataCy to openOrder Modal
Browse files Browse the repository at this point in the history
Previously, there was a fixed cypress data attribute for selecting the `reservation-success-close-button` . It has been added again and should fix the failing Cypress test for openOrder
  • Loading branch information
kasperbirch1 committed Oct 9, 2023
1 parent 5c0c7c1 commit 5bf5e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/reservation/ReservationModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ export const ReservationModalBody = ({
)}`}
ctaButton={{
text: t("okButtonText"),
modalId: reservationModalId(faustIds)
modalId: reservationModalId(faustIds),
dataCy: "reservation-success-close-button"
}}
>
{openOrderResponse.submitOrder.status && (
Expand Down

0 comments on commit 5bf5e1c

Please sign in to comment.