Fix failing tests

Introduced by #787
This commit is contained in:
gregoirenovel 2017-10-06 10:17:14 +02:00
parent b079aeed48
commit 90c84968ae

View file

@ -85,7 +85,9 @@ feature 'The gestionnaire part' do
click_on dossier.user.email click_on dossier.user.email
expect(page).to have_current_path(avis_path(dossier.avis.first)) expect(page).to have_current_path(avis_path(dossier.avis.first))
click_on 'Instruction' within(:css, '.tabs') do
click_on 'Avis'
end
expect(page).to have_current_path(instruction_avis_path(dossier.avis.first)) expect(page).to have_current_path(instruction_avis_path(dossier.avis.first))
within(:css, '.give-avis') do within(:css, '.give-avis') do
@ -103,7 +105,7 @@ feature 'The gestionnaire part' do
click_on 'nouvelle interface' click_on 'nouvelle interface'
click_on procedure.libelle click_on procedure.libelle
click_on dossier.user.email click_on dossier.user.email
click_on 'Avis Externes' click_on 'Avis externes'
expect(page).to have_text('a great answer') expect(page).to have_text('a great answer')
end end