feat(champ): can condition on other option
This commit is contained in:
parent
a53688ce23
commit
a24885c2ee
9 changed files with 39 additions and 16 deletions
|
@ -87,7 +87,11 @@ FactoryBot.define do
|
|||
end
|
||||
|
||||
factory :champ_drop_down_list, class: 'Champs::DropDownListChamp' do
|
||||
type_de_champ { association :type_de_champ_drop_down_list, procedure: dossier.procedure }
|
||||
transient do
|
||||
other { false }
|
||||
end
|
||||
|
||||
type_de_champ { association :type_de_champ_drop_down_list, procedure: dossier.procedure, drop_down_other: other }
|
||||
value { 'choix 1' }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue