fix(dossier): ineligibilite modal en construction/fork
This commit is contained in:
parent
1c6d012f44
commit
d8ee89db29
3 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
%p= error_message
|
%p= error_message
|
||||||
|
|
||||||
- if wrapped?
|
- if wrapped?
|
||||||
%div{ id: dom_id(@dossier, :ineligibilite_rules_broken) }
|
#ineligibilite_rules_modal
|
||||||
= modal_content
|
= modal_content
|
||||||
- else
|
- else
|
||||||
= modal_content
|
= modal_content
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
= render partial: 'shared/dossiers/update_champs', locals: { to_show: @to_show, to_hide: @to_hide, to_update: @to_update, dossier: @dossier }
|
= render partial: 'shared/dossiers/update_champs', locals: { to_show: @to_show, to_hide: @to_hide, to_update: @to_update, dossier: @dossier }
|
||||||
|
|
||||||
- if params[:validate].present? && @dossier.revision.ineligibilite_enabled?
|
- if params[:validate].present? && @dossier.revision.ineligibilite_enabled?
|
||||||
= turbo_stream.update dom_id(@dossier, :ineligibilite_rules_broken), render(Dossiers::InvalidIneligibiliteRulesComponent.new(dossier: @dossier, wrapped: false))
|
= turbo_stream.update :ineligibilite_rules_modal, render(Dossiers::InvalidIneligibiliteRulesComponent.new(dossier: @dossier, wrapped: false))
|
||||||
|
|
||||||
- if @update_contact_information
|
- if @update_contact_information
|
||||||
= turbo_stream.update "contact_information", partial: 'shared/dossiers/update_contact_information', locals: { dossier: @dossier, procedure: @dossier.procedure }
|
= turbo_stream.update "contact_information", partial: 'shared/dossiers/update_contact_information', locals: { dossier: @dossier, procedure: @dossier.procedure }
|
||||||
|
|
|
@ -164,7 +164,7 @@ describe 'shared/dossiers/edit', type: :view do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders broken transitions rules dialog' do
|
it 'renders broken transitions rules dialog' do
|
||||||
expect(subject).to have_selector("##{ActionView::RecordIdentifier.dom_id(dossier, :ineligibilite_rules_broken)}")
|
expect(subject).to have_selector("#ineligibilite_rules_modal [data-fr-opened='true']")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue