fix(form): improve identity form a11y & markup

This commit is contained in:
Colin Darie 2023-09-18 18:15:28 +02:00
parent 202ba6bbe6
commit b85a897237
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
13 changed files with 70 additions and 60 deletions

View file

@ -267,8 +267,8 @@ describe 'fetch API Particulier Data', js: true, retry: 3 do
click_on 'Commencer la démarche'
find('label', text: 'Monsieur').click
fill_in('identite_champ_first_name', with: 'prenom')
fill_in('identite_champ_last_name', with: 'nom')
fill_in('Prénom', with: 'prenom')
fill_in('Nom', with: 'nom')
click_button('Continuer')
@ -326,8 +326,8 @@ describe 'fetch API Particulier Data', js: true, retry: 3 do
click_on 'Commencer la démarche'
find('label', text: 'Monsieur').click
fill_in('identite_champ_first_name', with: 'Georges')
fill_in('identite_champ_last_name', with: 'Moustaki')
fill_in('Prénom', with: 'Georges')
fill_in('Nom', with: 'Moustaki')
click_button('Continuer')
@ -399,9 +399,9 @@ describe 'fetch API Particulier Data', js: true, retry: 3 do
visit commencer_path(path: procedure.path)
click_on 'Commencer la démarche'
find('label[for="identite_champ_radio_Mme"]').click
fill_in('identite_champ_last_name', with: 'Dubois')
fill_in('identite_champ_first_name', with: 'Angela Claire Louise')
find('label', text: 'Madame').click
fill_in('Prénom', with: 'Dubois')
fill_in('Nom', with: 'Angela Claire Louise')
click_button('Continuer')
@ -463,9 +463,9 @@ describe 'fetch API Particulier Data', js: true, retry: 3 do
visit commencer_path(path: procedure.path)
click_on 'Commencer la démarche'
find('label[for="identite_champ_radio_Mme"]').click
fill_in('identite_champ_last_name', with: 'FERRI')
fill_in('identite_champ_first_name', with: 'Karine')
find('label', text: 'Madame').click
fill_in('Nom', with: 'FERRI')
fill_in('Prénom', with: 'Karine')
click_button('Continuer')