Wait for AJAX after steps defined in SharedActiveTab

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-04-26 11:19:20 +02:00
parent 3c6fad6429
commit ccaf6ea59a
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB

View file

@ -1,5 +1,10 @@
module SharedActiveTab
include Spinach::DSL
include WaitForAjax
after do
wait_for_ajax if javascript_test?
end
def ensure_active_main_tab(content)
expect(find('.layout-nav li.active')).to have_content(content)