[fix #873] add motivation in case of refused or without continuation dossier

This commit is contained in:
Simon Lehericey 2017-11-29 11:47:18 +01:00
parent a5cf9cd6d6
commit 68682fe78d
5 changed files with 36 additions and 32 deletions

View file

@ -23,8 +23,10 @@ feature 'The gestionnaire part' do
dossier.reload
expect(dossier.state).to eq('received')
fill_in('dossier_motivation', with: 'a good reason')
click_on 'Valider la décision'
within('.accept.motivation') do
fill_in('dossier_motivation', with: 'a good reason')
click_on 'Valider la décision'
end
dossier.reload
expect(dossier.state).to eq('closed')