-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prise en cmpte retour formulaire (#238)
- Loading branch information
1 parent
b49d3b3
commit 0011f64
Showing
11 changed files
with
59 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ describe('candidature conseiller', () => { | |
expect(nom).toHaveAttribute('type', 'text'); | ||
expect(nom).toBeRequired(); | ||
|
||
const email = within(etapeInformationsDeContact).getByLabelText('Adresse e-mail * Format attendu : [email protected]'); | ||
const email = within(etapeInformationsDeContact).getByLabelText('Adresse électronique * Format attendu : [email protected]'); | ||
expect(email).toHaveAttribute('type', 'email'); | ||
expect(email).toBeRequired(); | ||
|
||
|
@@ -369,7 +369,7 @@ describe('candidature conseiller', () => { | |
fireEvent.change(prenom, { target: { value: 'Jean' } }); | ||
const nom = screen.getByLabelText('Nom *'); | ||
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const email = screen.getByLabelText('Adresse e-mail * Format attendu : [email protected]'); | ||
const email = screen.getByLabelText('Adresse électronique * Format attendu : [email protected]'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const adresse = screen.getByLabelText('Votre lieu d’habitation * Saississez le nom ou le code postal de votre commune.'); | ||
fireEvent.change(adresse, { target: { value: '93100 Montreuil' } }); | ||
|
@@ -408,7 +408,7 @@ describe('candidature conseiller', () => { | |
fireEvent.change(prenom, { target: { value: 'Jean' } }); | ||
const nom = screen.getByLabelText('Nom *'); | ||
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const email = screen.getByLabelText('Adresse e-mail * Format attendu : [email protected]'); | ||
const email = screen.getByLabelText('Adresse électronique * Format attendu : [email protected]'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const adresse = screen.getByLabelText('Votre lieu d’habitation * Saississez le nom ou le code postal de votre commune.'); | ||
fireEvent.change(adresse, { target: { value: '93100 Montreuil' } }); | ||
|
@@ -450,7 +450,7 @@ describe('candidature conseiller', () => { | |
fireEvent.change(prenom, { target: { value: 'Jean' } }); | ||
const nom = screen.getByLabelText('Nom *'); | ||
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const email = screen.getByLabelText('Adresse e-mail * Format attendu : [email protected]'); | ||
const email = screen.getByLabelText('Adresse électronique * Format attendu : [email protected]'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const adresse = screen.getByLabelText('Votre lieu d’habitation * Saississez le nom ou le code postal de votre commune.'); | ||
fireEvent.change(adresse, { target: { value: '93100 Montreuil' } }); | ||
|
@@ -499,7 +499,7 @@ describe('candidature conseiller', () => { | |
fireEvent.change(prenom, { target: { value: 'Jean' } }); | ||
const nom = screen.getByLabelText('Nom *'); | ||
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const email = screen.getByLabelText('Adresse e-mail * Format attendu : [email protected]'); | ||
const email = screen.getByLabelText('Adresse électronique * Format attendu : [email protected]'); | ||
const adresse = screen.getByLabelText('Votre lieu d’habitation * Saississez le nom ou le code postal de votre commune.'); | ||
fireEvent.change(adresse, { target: { value: '93100 Montreuil' } }); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
|
@@ -545,7 +545,7 @@ describe('candidature conseiller', () => { | |
fireEvent.change(prenom, { target: { value: 'Jean' } }); | ||
const nom = screen.getByLabelText('Nom *'); | ||
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const email = screen.getByLabelText('Adresse e-mail * Format attendu : [email protected]'); | ||
const email = screen.getByLabelText('Adresse électronique * Format attendu : [email protected]'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const adresse = screen.getByLabelText('Votre lieu d’habitation * Saississez le nom ou le code postal de votre commune.'); | ||
fireEvent.change(adresse, { target: { value: '93100 Montreuil' } }); | ||
|
@@ -687,7 +687,7 @@ describe('candidature conseiller', () => { | |
fireEvent.change(prenom, { target: { value: 'Jean' } }); | ||
const nom = screen.getByLabelText('Nom *'); | ||
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const email = screen.getByLabelText('Adresse e-mail * Format attendu : [email protected]'); | ||
const email = screen.getByLabelText('Adresse électronique * Format attendu : [email protected]'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const adresse = screen.getByLabelText('Votre lieu d’habitation * Saississez le nom ou le code postal de votre commune.'); | ||
fireEvent.change(adresse, { target: { value: '93100 Montreuil' } }); | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ export default function InformationsDeContact() { | |
id="email" | ||
type="email" | ||
> | ||
Adresse e-mail <span className="cc-obligatoire">*</span> <span className="fr-hint-text">Format attendu : [email protected]</span> | ||
Adresse électronique <span className="cc-obligatoire">*</span> <span className="fr-hint-text">Format attendu : [email protected]</span> | ||
</Input> | ||
<Input | ||
id="telephone" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,7 +111,7 @@ describe('candidature coordinateur', () => { | |
expect(fonction).toHaveAttribute('type', 'text'); | ||
expect(fonction).toBeRequired(); | ||
|
||
const email = within(etapeInformationsDeContact).getByLabelText('Adresse e-mail *'); | ||
const email = within(etapeInformationsDeContact).getByLabelText('Adresse électronique *'); | ||
expect(email).toHaveAttribute('type', 'email'); | ||
expect(email).toBeRequired(); | ||
|
||
|
@@ -131,7 +131,7 @@ describe('candidature coordinateur', () => { | |
expect(etapeBesoinCoordinateur).toHaveAttribute('id', 'votre-besoin-en-coordinateur'); | ||
|
||
const identificationCandidat = within(etapeBesoinCoordinateur).getByText( | ||
textMatcher('Avez-vous déjà identifié un candidat pour le poste de coordinateur de conseiller numérique ?*'), | ||
textMatcher('Avez-vous déjà identifié un candidat pour le poste de coordinateur de conseiller numérique ? *'), | ||
{ selector: 'p' } | ||
); | ||
expect(identificationCandidat).toBeInTheDocument(); | ||
|
@@ -163,7 +163,7 @@ describe('candidature coordinateur', () => { | |
expect(publics).toHaveAttribute('name', 'coordinateurTypeContrat'); | ||
|
||
const dateAccueilCoordinateur = within(etapeBesoinCoordinateur).getByText( | ||
textMatcher('À partir de quand êtes vous prêt à accueillir votre coordinateur ?*'), | ||
textMatcher('À partir de quand êtes vous prêt à accueillir votre coordinateur ? *'), | ||
{ selector: 'p' } | ||
); | ||
expect(dateAccueilCoordinateur).toBeInTheDocument(); | ||
|
@@ -226,11 +226,11 @@ describe('candidature coordinateur', () => { | |
const engagements = screen.getByTestId('votre-engagement'); | ||
|
||
const listDetail = within(engagements).getAllByRole('listitem'); | ||
within(listDetail[0]).getByText('Renforcer le maillage et les synergies territoriales'); | ||
within(listDetail[1]).getByText('Être le relais principal des employeurs, des Conseillers numériques et de l’équipe d’animation nationale'); | ||
within(listDetail[2]).getByText('Imaginer et mettre en place des collaborations sur la base des besoins de la communauté des Conseillers numériques'); | ||
within(listDetail[3]).getByText('Signer dans les 15 jours suivants un contrat avec ce candidat'); | ||
within(listDetail[4]).getByText('Laisser partir le conseiller numérique en formation initiale ou continue'); | ||
within(listDetail[0]).getByText('Renforcer le maillage et les synergies territoriales,'); | ||
within(listDetail[1]).getByText('Être le relais principal des employeurs, des Conseillers numériques et de l’équipe d’animation nationale,'); | ||
within(listDetail[2]).getByText('Imaginer et mettre en place des collaborations sur la base des besoins de la communauté des Conseillers numériques,'); | ||
within(listDetail[3]).getByText('Signer dans les 15 jours suivants un contrat avec ce candidat,'); | ||
within(listDetail[4]).getByText('Laisser partir le conseiller numérique en formation initiale ou continue,'); | ||
within(listDetail[5]).getByText('Mettre à sa disposition les moyens et équipements pour réaliser sa mission (ordinateur, ' + | ||
'téléphone portable, voiture si nécessaire)'); | ||
|
||
|
@@ -276,7 +276,7 @@ describe('candidature coordinateur', () => { | |
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const fonction = screen.getByLabelText('Fonction *'); | ||
fireEvent.change(fonction, { target: { value: 'Test' } }); | ||
const email = screen.getByLabelText('Adresse e-mail *'); | ||
const email = screen.getByLabelText('Adresse électronique *'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const telephone = screen.getByLabelText('Téléphone *'); | ||
fireEvent.change(telephone, { target: { value: '+33123456789' } }); | ||
|
@@ -335,7 +335,7 @@ describe('candidature coordinateur', () => { | |
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const fonction = screen.getByLabelText('Fonction *'); | ||
fireEvent.change(fonction, { target: { value: 'Test' } }); | ||
const email = screen.getByLabelText('Adresse e-mail *'); | ||
const email = screen.getByLabelText('Adresse électronique *'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const telephone = screen.getByLabelText('Téléphone *'); | ||
fireEvent.change(telephone, { target: { value: '+33123456789' } }); | ||
|
@@ -501,7 +501,7 @@ describe('candidature coordinateur', () => { | |
fireEvent.change(nom, { target: { value: 'Dupont' } }); | ||
const fonction = screen.getByLabelText('Fonction *'); | ||
fireEvent.change(fonction, { target: { value: 'Test' } }); | ||
const email = screen.getByLabelText('Adresse e-mail *'); | ||
const email = screen.getByLabelText('Adresse électronique *'); | ||
fireEvent.change(email, { target: { value: '[email protected]' } }); | ||
const telephone = screen.getByLabelText('Téléphone *'); | ||
fireEvent.change(telephone, { target: { value: '+33123456789' } }); | ||
|
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
Oops, something went wrong.