diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/__specs__/CollectiveOfferCreation.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/__specs__/CollectiveOfferCreation.spec.tsx index e2d397ddd63..ccc32597385 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/__specs__/CollectiveOfferCreation.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/CollectiveOfferCreation/__specs__/CollectiveOfferCreation.spec.tsx @@ -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() }) @@ -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() diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx index 82ce2b6917e..c438e19ddd7 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormAccessibility/FormAccessibility.tsx @@ -16,7 +16,7 @@ export const FormAccessibility = ({ const { setFieldValue } = useFormikContext() return ( - + { return ( + + ( - + () return ( - + {({ remove, push }) => ( <> diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormOfferType/FormOfferType.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormOfferType/FormOfferType.tsx index ac510969ac2..06fd5b85de3 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormOfferType/FormOfferType.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormOfferType/FormOfferType.tsx @@ -92,7 +92,7 @@ export const FormOfferType = ({ /> )} - + + diff --git a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/FormPracticalInformation.tsx b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/FormPracticalInformation.tsx index 86667f68f84..616938154af 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/FormPracticalInformation.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOffer/components/OfferEducational/OfferEducationalForm/FormPracticalInformation/FormPracticalInformation.tsx @@ -149,11 +149,7 @@ export const FormPracticalInformation = ({ return ( {isEligible === false && userOfferer !== null && ( { 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() }) @@ -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() }) }) diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/CollectiveOfferLayout.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/CollectiveOfferLayout.tsx index 796a2153bd3..ffac247e04b 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/CollectiveOfferLayout.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/CollectiveOfferLayout.tsx @@ -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) { diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/__specs__/CollectiveOfferLayout.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/__specs__/CollectiveOfferLayout.spec.tsx index 2eff0751ae2..77c0d03de2e 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/__specs__/CollectiveOfferLayout.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferLayout/__specs__/CollectiveOfferLayout.spec.tsx @@ -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() @@ -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() diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferPreview/CollectiveOfferPreviewCreation/__specs__/CollectiveOfferPreviewCreation.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferPreview/CollectiveOfferPreviewCreation/__specs__/CollectiveOfferPreviewCreation.spec.tsx index da914b673a2..68d9384d77a 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferPreview/CollectiveOfferPreviewCreation/__specs__/CollectiveOfferPreviewCreation.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferPreview/CollectiveOfferPreviewCreation/__specs__/CollectiveOfferPreviewCreation.spec.tsx @@ -70,7 +70,7 @@ describe('CollectiveOfferPreviewCreation', () => { ) expect( screen.getByRole('heading', { - name: /Créer une nouvelle offre collective/, + name: /Créer une offre/, }) ).toBeInTheDocument() diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx index 2635b3bf3c0..36e5add03f5 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferStock/CollectiveOfferStockCreation/__specs__/CollectiveOfferStockCreation.spec.tsx @@ -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( diff --git a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.spec.tsx b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.spec.tsx index be2cb70ccdf..80e3241c75b 100644 --- a/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.spec.tsx +++ b/pro/src/pages/CollectiveOffer/CollectiveOfferSummary/CollectiveOfferSummaryCreation/CollectiveOfferSummaryCreation.spec.tsx @@ -58,7 +58,7 @@ describe('CollectiveOfferSummaryCreation', () => { ) expect( screen.getByRole('heading', { - name: /Créer une nouvelle offre collective/, + name: /Créer une offre/, }) ).toBeInTheDocument() expect( diff --git a/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx b/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx index 4419edd3595..9b8d0004d35 100644 --- a/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx +++ b/pro/src/pages/CollectiveOfferVisibility/__specs__/CollectiveOfferCreationVisibility.spec.tsx @@ -41,7 +41,7 @@ describe('CollectiveOfferVisibility', () => { expect( await screen.findByRole('heading', { - name: /Créer une nouvelle offre collective/, + name: /Créer une offre/, }) ).toBeInTheDocument()