Skip to content

Commit

Permalink
(PC-35502)[PRO] feat: wording form offer collecitve
Browse files Browse the repository at this point in the history
  • Loading branch information
smokhtari-passculture committed Dec 26, 2024
1 parent 2aac204 commit a55e71b
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ describe('CollectiveOfferCreation', () => {
})
expect(
await screen.findByRole('heading', {
name: /Créer une nouvelle offre collective/,
name: /Créer une offre/,
})
).toBeInTheDocument()
expect(
screen.getByRole('heading', {
name: 'Lieu de rattachement de votre offre',
name: 'Qui propose l’offre ? *',
})
).toBeInTheDocument()
})
Expand All @@ -78,7 +78,7 @@ describe('CollectiveOfferCreation', () => {
})
expect(
await screen.findByRole('heading', {
name: /Créer une nouvelle offre collective/,
name: /Créer une offre/,
})
).toBeInTheDocument()
expect(screen.getByText('Offre vitrine')).toBeInTheDocument()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const FormAccessibility = ({
const { setFieldValue } = useFormikContext<OfferEducationalFormValues>()

return (
<FormLayout.Section title="Accessibilité">
<FormLayout.Section title="À quel type de handicap votre offre est-elle accessible ? *">
<FormLayout.Row>
<CheckboxGroup
group={useAccessibilityOptions(setFieldValue)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const FormContact = ({ disableForm }: FormContactProps): JSX.Element => {
return (
<FormLayout.Section
description={`Ces informations sont affichées sur votre offre.\n Elles permettent aux enseignants et aux chefs d’établissement de vous contacter.`}
title="Contact"
title="Comment les enseignants peuvent-ils vous contacter ? *"
>
<FormLayout.Row className={styles['phone-number-row']}>
<PhoneNumberInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const FormContactTemplate = ({
const ariaDescribedBy = 'error-contactOptions'

return (
<FormLayout.Section title="Contact">
<FormLayout.Section title="Comment les enseignants peuvent-ils vous contacter ? *">
<FieldSetLayout
legend="Choisissez le ou les moyens par lesquels vous souhaitez être contacté par les enseignants au sujet de cette offre :"
name="contactOptions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const FormDates = ({
: 'désactivée'

return (
<FormLayout.Section title="Date et heure">
<FormLayout.Section title="Quand votre offre peut-elle avoir lieu ? *">
<RadioGroup
disabled={disableForm}
group={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const FormImageUploader = ({
imageOffer,
disableForm,
}: ImageUploaderOfferProps) => (
<FormLayout.Section title="Image de l’offre">
<FormLayout.Section title="Illustrez votre offre">
<FormLayout.Row>
<ImageUploader
onImageUpload={onImageUpload}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const FormNotifications = ({
const { values } = useFormikContext<OfferEducationalFormValues>()

return (
<FormLayout.Section title="Notifications">
<FormLayout.Section title="À quel email le pass Culture peut-il vous envoyer des notifications ? *">
<FieldArray name="notificationEmails">
{({ remove, push }) => (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const FormOfferType = ({
/>
</FormLayout.Row>
)}
<FormLayout.Section title="Informations artistiques">
<FormLayout.Section title="Dites-nous en plus sur votre offre culturelle">
<FormLayout.Row>
<TextInput
countCharacters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const FormParticipants = ({
)

return (
<FormLayout.Section title="Participants">
<FormLayout.Section title="À quels niveaux scolaires s’adressent votre offre ? *">
<FormLayout.Row
sideComponent={
<InfoBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,7 @@ export const FormPracticalInformation = ({

return (
<FormLayout.Section
title={
isOfferAddressEnabled
? 'Localisation de l’événement'
: 'Lieu de l’événement'
}
title="Où se déroule votre offre ? *"
>
<FormLayout.Row>
<RadioGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const FormVenue = ({
return (
<FormLayout.Section
description={`${isOfferAddressEnabled ? 'La structure' : 'Le lieu'} de rattachement permet d’associer votre compte bancaire pour le remboursement pass Culture.`}
title={`${isOfferAddressEnabled ? 'Structure' : 'Lieu'} de rattachement de votre offre`}
title="Qui propose l’offre ? *"
>
{isEligible === false && userOfferer !== null && (
<Callout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('OfferEducationalForm', () => {
it('should show the dates section if the offer is a template', async () => {
renderOfferEducationalForm({ ...defaultProps, isTemplate: true })
expect(
await screen.findByRole('heading', { name: 'Date et heure' })
await screen.findByRole('heading', { name: 'Quand votre offre peut-elle avoir lieu ? *' })
).toBeInTheDocument()
})

Expand All @@ -87,7 +87,7 @@ describe('OfferEducationalForm', () => {

await waitFor(() => {
expect(
screen.queryByRole('heading', { name: 'Date et heure' })
screen.queryByRole('heading', { name: 'Quand votre offre peut-elle avoir lieu ? *' })
).not.toBeInTheDocument()
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export const CollectiveOfferLayout = ({
let title = ''
if (isCreation) {
if (isFromTemplate) {
title = 'Créer une offre pour un établissement scolaire'
title = 'Créer une offre vitrine'
} else {
title = 'Créer une nouvelle offre collective'
title = 'Créer une offre'
}
} else {
if (isSummaryPage) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('CollectiveOfferLayout', () => {
renderCollectiveOfferLayout('/offre/A1/collectif/', { isCreation: true })

const title = screen.getByRole('heading', {
name: /Créer une nouvelle offre collective/,
name: /Créer une offre/,
})

expect(title).toBeInTheDocument()
Expand All @@ -73,7 +73,7 @@ describe('CollectiveOfferLayout', () => {
})

const title = screen.getByRole('heading', {
name: /Créer une offre pour un établissement scolaire/,
name: /Créer une offre vitrine/,
})

expect(title).toBeInTheDocument()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('CollectiveOfferPreviewCreation', () => {
)
expect(
screen.getByRole('heading', {
name: /Créer une nouvelle offre collective/,
name: /Créer une offre/,
})
).toBeInTheDocument()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('CollectiveOfferStockCreation', () => {

expect(
await screen.findByRole('heading', {
name: /Créer une nouvelle offre collective/,
name: /Créer une offre/,
})
).toBeInTheDocument()
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('CollectiveOfferSummaryCreation', () => {
)
expect(
screen.getByRole('heading', {
name: /Créer une nouvelle offre collective/,
name: /Créer une offre/,
})
).toBeInTheDocument()
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('CollectiveOfferVisibility', () => {

expect(
await screen.findByRole('heading', {
name: /Créer une nouvelle offre collective/,
name: /Créer une offre/,
})
).toBeInTheDocument()

Expand Down

0 comments on commit a55e71b

Please sign in to comment.