fix(commune): improuve label and error message

This commit is contained in:
Paul Chavard 2023-03-31 12:29:58 +02:00
parent 4336184fc8
commit ed62d171ce
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
---
en:
postal_code: Postal code of the municipality
not_found: No municipality found for postal code %{postal_code}
postal_code: Enter the postal code then select the municipality from the list
not_found: No municipality found for postal code %{postal_code}. Please check that you haven't made any mistakes.

View file

@ -1,4 +1,4 @@
---
fr:
postal_code: Code postal de la commune
not_found: Aucune commune trouvée pour le code postal %{postal_code}
postal_code: Renseignez le code postal puis sélectionnez la commune dans la liste
not_found: Aucune commune trouvée pour le code postal %{postal_code}. Verifiez que vous n'avez pas fait derreur.

View file

@ -44,7 +44,7 @@ describe 'The user' do
select('Australie', from: form_id_for('pays'))
select('Martinique', from: form_id_for('regions'))
select('02 Aisne', from: form_id_for('departements'))
fill_in('Code postal de la commune', with: '60400')
fill_in('Renseignez le code postal puis sélectionnez la commune dans la liste', with: '60400')
select('Brétigny (60400)', from: form_id_for('communes'))
fill_in('dossier_link', with: '123')