This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-11490) create constants for fields label
- Loading branch information
1 parent
51d86b5
commit fbdcfa7
Showing
8 changed files
with
68 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/screens/OfferEducational/__tests-utils__/eacOfferCreationUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { screen } from '@testing-library/react' | ||
|
||
import { CATEGORY_LABEL, SUBCATEGORY_LABEL } from 'screens/OfferEducational/constants/labels' | ||
|
||
export const getCategoriesSelect = (): HTMLSelectElement => | ||
screen.getByLabelText('Domaine') as HTMLSelectElement | ||
screen.getByLabelText(CATEGORY_LABEL) as HTMLSelectElement | ||
|
||
export const getSubcategoriesSelect = (): HTMLSelectElement => | ||
screen.getByLabelText('Sous Domaine') as HTMLSelectElement | ||
screen.getByLabelText(SUBCATEGORY_LABEL) as HTMLSelectElement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const CATEGORY_LABEL = "Domaine" | ||
export const SUBCATEGORY_LABEL = "Sous Domaine" | ||
export const TITLE_LABEL = "Titre de l'offre" | ||
export const DESCRIPTION_LABEL = "Description" | ||
export const OFFERER_LABEL = "Structure" | ||
export const VENUE_LABEL = "Lieu qui percevra le remboursement" | ||
export const OFFER_VENUE_OFFERER_LABEL = "Dans notre établissement" | ||
export const OFFER_VENUE_SCHOOL_LABEL = "Dans l'établissement scolaire" | ||
export const OFFER_VENUE_OTHER_LABEL = "Autre" | ||
export const PHONE_LABEL = "Téléphone" | ||
export const EMAIL_LABEL = "Email" | ||
export const NOTIFICATIONS_LABEL = "Être notifié par email des réservations" | ||
export const NOTIFICATIONS_EMAIL_LABEL = "Email auquel envoyer les notifications" |