fix actions rules for archived and expirant dossiers
This commit is contained in:
parent
76947a5ccf
commit
b03748d3dd
2 changed files with 6 additions and 7 deletions
|
@ -108,10 +108,7 @@ describe 'instructeurs/dossiers/show.html.haml', type: :view do
|
|||
|
||||
it 'displays the correct actions' do
|
||||
expect(subject).to have_text('Conserver un mois de plus')
|
||||
expect(subject).to have_link('Repasser en instruction', href: repasser_en_instruction_instructeur_dossier_path(dossier.procedure, dossier))
|
||||
expect(subject).to have_link('Archiver le dossier', href: archive_instructeur_dossier_path(dossier.procedure, dossier))
|
||||
expect(subject).to have_selector('[title^="Supprimer le dossier"]')
|
||||
expect(subject).to have_selector('.header-actions ul:first-child .fr-btn', count: 4)
|
||||
expect(subject).to have_selector('.header-actions ul:first-child .fr-btn', count: 1)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -120,7 +117,8 @@ describe 'instructeurs/dossiers/show.html.haml', type: :view do
|
|||
|
||||
it 'displays the correct actions' do
|
||||
expect(subject).to have_link('Désarchiver le dossier', href: unarchive_instructeur_dossier_path(dossier.procedure, dossier))
|
||||
expect(subject).to have_selector('.header-actions ul:first-child .fr-btn', count: 1)
|
||||
expect(subject).to have_selector('[title^="Supprimer le dossier"]')
|
||||
expect(subject).to have_selector('.header-actions ul:first-child .fr-btn', count: 2)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue