fix(dossier): do not bypass depositaire check on modifier path

This commit is contained in:
Paul Chavard 2023-04-26 16:54:50 +02:00
parent 2ad8ccc310
commit cb752d1857
7 changed files with 31 additions and 27 deletions

View file

@ -47,7 +47,7 @@ describe 'users/dossiers/index.html.haml', type: :view do
end
it 'affiche une alerte pour continuer à remplir un dossier' do
expect(rendered).to have_selector('.fr-callout', count: 1)
expect(rendered).to have_link(href: modifier_dossier_path(dossier_brouillon))
expect(rendered).to have_link(href: brouillon_dossier_path(dossier_brouillon))
end
end