fix(address): champ address should allow custom values
This commit is contained in:
parent
9e2662cb34
commit
cf3249dba5
2 changed files with 12 additions and 1 deletions
|
@ -1,2 +1,2 @@
|
||||||
= render Dsfr::ComboboxComponent.new form: @form, name: :value, url: data_sources_data_source_adresse_path, selected: @champ.value, id: @champ.input_id, class: 'fr-select', describedby: @champ.describedby_id do
|
= render Dsfr::ComboboxComponent.new form: @form, name: :value, url: data_sources_data_source_adresse_path, selected: @champ.value, id: @champ.input_id, class: 'fr-select', describedby: @champ.describedby_id, allows_custom_value: true do
|
||||||
= @form.hidden_field :external_id, data: { value_slot: 'value' }
|
= @form.hidden_field :external_id, data: { value_slot: 'value' }
|
||||||
|
|
|
@ -176,6 +176,17 @@ describe 'The user' do
|
||||||
expect(page).to have_current_path(merci_dossier_path(user_dossier))
|
expect(page).to have_current_path(merci_dossier_path(user_dossier))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scenario 'fill address not in BAN', js: true, retry: 3 do
|
||||||
|
log_in(user, procedure)
|
||||||
|
fill_individual
|
||||||
|
|
||||||
|
fill_in('address', with: '2 rue de la paix, 92094 Belgique')
|
||||||
|
wait_until {
|
||||||
|
champ_value_for('address') == '2 rue de la paix, 92094 Belgique'
|
||||||
|
}
|
||||||
|
expect(champ_for('address').full_address?).to be_falsey
|
||||||
|
end
|
||||||
|
|
||||||
scenario 'numbers champs formatting', js: true, retry: 3 do
|
scenario 'numbers champs formatting', js: true, retry: 3 do
|
||||||
log_in(user, simple_procedure)
|
log_in(user, simple_procedure)
|
||||||
fill_individual
|
fill_individual
|
||||||
|
|
Loading…
Reference in a new issue