make the 'male' field selected by default during identity creation
This commit is contained in:
parent
1bdc0836a6
commit
a34b45e4f4
5 changed files with 14 additions and 2 deletions
|
@ -12,8 +12,16 @@
|
||||||
%span.mandatory *
|
%span.mandatory *
|
||||||
champs requis
|
champs requis
|
||||||
|
|
||||||
= f.label :gender, class: "required"
|
%fieldset
|
||||||
= f.select :gender, [Individual::GENDER_MALE, Individual::GENDER_FEMALE], {}, class: "small"
|
%legend
|
||||||
|
= f.label :gender, class: "required"
|
||||||
|
.radios
|
||||||
|
%label
|
||||||
|
= f.radio_button :gender, Individual::GENDER_MALE
|
||||||
|
= Individual::GENDER_MALE
|
||||||
|
%label
|
||||||
|
= f.radio_button :gender, Individual::GENDER_FEMALE
|
||||||
|
= Individual::GENDER_FEMALE
|
||||||
|
|
||||||
.flex
|
.flex
|
||||||
.inline-champ
|
.inline-champ
|
||||||
|
|
|
@ -189,6 +189,7 @@ feature 'The routing', js: true do
|
||||||
visit commencer_path(path: procedure.reload.path)
|
visit commencer_path(path: procedure.reload.path)
|
||||||
click_on 'Commencer la démarche'
|
click_on 'Commencer la démarche'
|
||||||
|
|
||||||
|
choose 'M.'
|
||||||
fill_in 'individual_nom', with: 'Nom'
|
fill_in 'individual_nom', with: 'Nom'
|
||||||
fill_in 'individual_prenom', with: 'Prenom'
|
fill_in 'individual_prenom', with: 'Prenom'
|
||||||
click_button('Continuer')
|
click_button('Continuer')
|
||||||
|
|
|
@ -282,6 +282,7 @@ feature 'The user' do
|
||||||
end
|
end
|
||||||
|
|
||||||
def fill_individual
|
def fill_individual
|
||||||
|
choose 'M.'
|
||||||
fill_in('individual_prenom', with: 'prenom')
|
fill_in('individual_prenom', with: 'prenom')
|
||||||
fill_in('individual_nom', with: 'nom')
|
fill_in('individual_nom', with: 'nom')
|
||||||
click_on 'Continuer'
|
click_on 'Continuer'
|
||||||
|
|
|
@ -22,6 +22,7 @@ feature 'Creating a new dossier:' do
|
||||||
expect(page).to have_current_path identite_dossier_path(user.reload.dossiers.last)
|
expect(page).to have_current_path identite_dossier_path(user.reload.dossiers.last)
|
||||||
expect(page).to have_procedure_description(procedure)
|
expect(page).to have_procedure_description(procedure)
|
||||||
|
|
||||||
|
choose 'M.'
|
||||||
fill_in 'individual_nom', with: 'Nom'
|
fill_in 'individual_nom', with: 'Nom'
|
||||||
fill_in 'individual_prenom', with: 'Prenom'
|
fill_in 'individual_prenom', with: 'Prenom'
|
||||||
end
|
end
|
||||||
|
|
|
@ -62,6 +62,7 @@ feature 'linked dropdown lists' do
|
||||||
end
|
end
|
||||||
|
|
||||||
def fill_individual
|
def fill_individual
|
||||||
|
choose 'M.'
|
||||||
fill_in('individual_prenom', with: 'prenom')
|
fill_in('individual_prenom', with: 'prenom')
|
||||||
fill_in('individual_nom', with: 'nom')
|
fill_in('individual_nom', with: 'nom')
|
||||||
click_on 'Continuer'
|
click_on 'Continuer'
|
||||||
|
|
Loading…
Add table
Reference in a new issue