dossiers: refresh the whole header actions bar on status change

This ensure the other state-dependant buttons get updated to–like the
"Follow" or "Archive" button.

Fix #4186
This commit is contained in:
Pierre de La Morinerie 2019-08-12 14:46:38 +00:00 committed by Nicolas Bouilleaud
parent 3a37c1eeae
commit 79784089a4
3 changed files with 11 additions and 10 deletions

View file

@ -67,6 +67,7 @@ feature 'The instructeur part' do
end
expect(page).to have_text('Dossier traité avec succès.')
expect(page).to have_link('Archiver le dossier')
dossier.reload
expect(dossier.state).to eq(Dossier.states.fetch(:accepte))