Skip to content

Commit

Permalink
Add missing data attributes for Cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperbirch1 committed Apr 24, 2024
1 parent 0242b8b commit eba9ccc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/apps/opening-hours-editor/ConfirmAddRepeatedOpeningHour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ const ConfirmAddRepeatedOpeningHour = ({
}: ConfirmAddRepeatedOpeningHourType) => {
const t = useText();
return (
<div className="opening-hours-editor-form">
<div
className="opening-hours-editor-form"
data-cy="cy-opening-hours-editor-confirm-add-repeated-form"
>
<h2 className="opening-hours-editor-form__label">
{t("openingHoursConfirmAddRepeatedText")}
</h2>
<table className="opening-hours-editor-form__table">
<table
className="opening-hours-editor-form__table"
data-cy="cy-opening-hours-editor-form__table"
>
<tbody>
<tr>
<td>{t("openingHoursEventFormCategoryText")}:</td>
Expand Down Expand Up @@ -58,13 +64,15 @@ const ConfirmAddRepeatedOpeningHour = ({
</tbody>
</table>
<button
data-cy="cy-opening-hours-editor-form__cancel"
type="button"
className="opening-hours-editor-form__cancel"
onClick={closeDialog}
>
{t("openingHoursConfirmAddRepeatedCancelText")}
</button>
<button
data-cy="cy-opening-hours-editor-form__confirm"
type="button"
className="opening-hours-editor-form__submit"
onClick={() => {
Expand Down

0 comments on commit eba9ccc

Please sign in to comment.