From 807a8112e3687f988acb05a1c6bbf9bb051d300e Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 13 Feb 2017 13:15:37 +0100 Subject: [PATCH] Fix some features tests (DONE) --- .../lateral_page_pref_list_dossier_backoffice_spec.rb | 1 + ...teral_page_pref_list_dossier_by_procedure_backoffice_spec.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/spec/features/backoffice/lateral_page_pref_list_dossier_backoffice_spec.rb b/spec/features/backoffice/lateral_page_pref_list_dossier_backoffice_spec.rb index fe4ce332d..4de962762 100644 --- a/spec/features/backoffice/lateral_page_pref_list_dossier_backoffice_spec.rb +++ b/spec/features/backoffice/lateral_page_pref_list_dossier_backoffice_spec.rb @@ -69,6 +69,7 @@ feature 'usage of pref list dossier lateral panel', js: true do end scenario 'lateral panel is masked' do + wait_for_ajax expect(page).to have_css('#pref_list_menu', visible: false) end end diff --git a/spec/features/backoffice/lateral_page_pref_list_dossier_by_procedure_backoffice_spec.rb b/spec/features/backoffice/lateral_page_pref_list_dossier_by_procedure_backoffice_spec.rb index 404c20ea2..34c9dac39 100644 --- a/spec/features/backoffice/lateral_page_pref_list_dossier_by_procedure_backoffice_spec.rb +++ b/spec/features/backoffice/lateral_page_pref_list_dossier_by_procedure_backoffice_spec.rb @@ -35,6 +35,7 @@ feature 'usage of pref list dossier lateral panel by procedure', js: true do end scenario 'lateral panel is appeared' do + wait_for_ajax expect(page).to have_css('#pref_list_menu') end @@ -69,6 +70,7 @@ feature 'usage of pref list dossier lateral panel by procedure', js: true do end scenario 'lateral panel is masked' do + wait_for_ajax expect(page).to have_css('#pref_list_menu', visible: false) end end