feat(correction): badge Corrigé when a correction has been resolved
Closes #9928
This commit is contained in:
parent
261932b56f
commit
8e6a1c58b2
7 changed files with 35 additions and 4 deletions
|
@ -70,6 +70,10 @@ describe 'instructeurs/dossiers/show', type: :view do
|
|||
|
||||
it { expect(subject).to have_button('Passer en instruction', disabled: false) }
|
||||
|
||||
it 'shows the correction badge' do
|
||||
expect(subject).to have_selector('.fr-badge--warning', text: "en attente")
|
||||
end
|
||||
|
||||
context 'with procedure blocking pending correction' do
|
||||
before { Flipper.enable(:blocking_pending_correction, dossier.procedure) }
|
||||
|
||||
|
@ -79,6 +83,14 @@ describe 'instructeurs/dossiers/show', type: :view do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with resolved correction' do
|
||||
before { create(:dossier_correction, dossier:, resolved_at: 1.minute.ago) }
|
||||
|
||||
it 'shows the resolved badge' do
|
||||
expect(subject).to have_selector('.fr-badge--success', text: "corrigé")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'en_instruction' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue