add AR in user view - hide decision on first dossier tab
This commit is contained in:
parent
ae08044ff2
commit
8eda069bfc
6 changed files with 71 additions and 36 deletions
|
@ -92,4 +92,12 @@ describe 'users/dossiers/show/_status_overview', type: :view do
|
|||
it { is_expected.to have_selector('.status-explanation .sans-suite') }
|
||||
it { is_expected.to have_text(dossier.motivation) }
|
||||
end
|
||||
|
||||
context 'when terminé but the procedure has an accuse de lecture' do
|
||||
let(:dossier) { create(:dossier, :sans_suite, :with_motivation, procedure: create(:procedure, :accuse_lecture)) }
|
||||
|
||||
it { is_expected.not_to have_selector('.status-explanation .sans-suite') }
|
||||
it { is_expected.not_to have_text(dossier.motivation) }
|
||||
it { is_expected.to have_text('Cette procédure est soumise à un accusé de lecture.') }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue