[fix #873] add motivation in case of refused or without continuation dossier
This commit is contained in:
parent
a5cf9cd6d6
commit
68682fe78d
5 changed files with 36 additions and 32 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue