From 90c84968ae8a0cd31da2dd3948b13705b2fbeb37 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Fri, 6 Oct 2017 10:17:14 +0200 Subject: [PATCH] Fix failing tests Introduced by #787 --- spec/features/new_gestionnaire/gestionnaire_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/features/new_gestionnaire/gestionnaire_spec.rb b/spec/features/new_gestionnaire/gestionnaire_spec.rb index 85f8ceff3..503bc4d43 100644 --- a/spec/features/new_gestionnaire/gestionnaire_spec.rb +++ b/spec/features/new_gestionnaire/gestionnaire_spec.rb @@ -85,7 +85,9 @@ feature 'The gestionnaire part' do click_on dossier.user.email 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)) within(:css, '.give-avis') do @@ -103,7 +105,7 @@ feature 'The gestionnaire part' do click_on 'nouvelle interface' click_on procedure.libelle click_on dossier.user.email - click_on 'Avis Externes' + click_on 'Avis externes' expect(page).to have_text('a great answer') end