Store drop_down_list values as jsonb
This commit is contained in:
parent
29d3d58645
commit
97f91513c8
19 changed files with 184 additions and 133 deletions
|
@ -139,7 +139,7 @@ feature 'As an administrateur I can edit types de champ', js: true do
|
|||
fill_in 'champ-0-libelle', with: 'Libellé de champ menu déroulant', fill_options: { clear: :backspace }
|
||||
fill_in 'champ-0-drop_down_list_value', with: 'Un menu', fill_options: { clear: :backspace }
|
||||
|
||||
wait_until { procedure.types_de_champ.first.drop_down_list&.value == 'Un menu' }
|
||||
wait_until { procedure.types_de_champ.first.drop_down_list_options == ['', 'Un menu'] }
|
||||
expect(page).to have_content('Formulaire enregistré')
|
||||
|
||||
page.refresh
|
||||
|
|
|
@ -13,8 +13,7 @@ feature 'linked dropdown lists' do
|
|||
Secondary 2.3
|
||||
END_OF_LIST
|
||||
end
|
||||
let(:drop_down_list) { create(:drop_down_list, value: list_items) }
|
||||
let(:type_de_champ) { create(:type_de_champ_linked_drop_down_list, libelle: 'linked dropdown', drop_down_list: drop_down_list) }
|
||||
let(:type_de_champ) { create(:type_de_champ_linked_drop_down_list, libelle: 'linked dropdown', drop_down_list_value: list_items) }
|
||||
|
||||
let!(:procedure) do
|
||||
p = create(:procedure, :published, :for_individual)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue