create a new layout without procedure for login and use same layout full_screen without description for identite step
This commit is contained in:
parent
1c409f0145
commit
31969b290b
15 changed files with 49 additions and 71 deletions
|
@ -51,18 +51,4 @@ describe 'layouts/procedure_context', type: :view do
|
|||
expect(subject).to have_text(dossier.procedure.service.email)
|
||||
end
|
||||
end
|
||||
|
||||
context 'when neither procedure or dossier are assigned' do
|
||||
it 'renders a placeholder for the procedure' do
|
||||
expect(subject).to have_selector('.no-procedure')
|
||||
end
|
||||
|
||||
it 'renders the inner content' do
|
||||
expect(subject).to have_text('Column content')
|
||||
end
|
||||
|
||||
it 'renders a generic footer' do
|
||||
expect(subject).to have_text('Mentions légales')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ describe 'shared/_procedure_description', type: :view do
|
|||
let(:estimated_duration_visible) { true }
|
||||
let(:procedure) { create(:procedure, :published, :with_service, estimated_duration_visible:) }
|
||||
|
||||
subject { render partial: 'shared/procedure_description', locals: { procedure: procedure, full_screen_display: false } }
|
||||
subject { render partial: 'shared/procedure_description', locals: { procedure: procedure } }
|
||||
|
||||
it 'renders the view' do
|
||||
subject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue