explicitly wait for angular for wp specs

pull/3291/head
Jens Ulferts 9 years ago
parent 4c16b12af7
commit 6309d8d6be
  1. 3
      spec/features/work_packages/work_packages_page.rb

@ -87,6 +87,9 @@ class WorkPackagesPage
def ensure_index_page_loaded def ensure_index_page_loaded
if Capybara.current_driver == Capybara.javascript_driver if Capybara.current_driver == Capybara.javascript_driver
extend ::Angular::DSL unless singleton_class.included_modules.include?(::Angular::DSL)
ng_wait
expect(page).to have_selector('.advanced-filters--filter', visible: false) expect(page).to have_selector('.advanced-filters--filter', visible: false)
end end
end end

Loading…
Cancel
Save