Wait for AJAX after steps defined in SharedActiveTab
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
3c6fad6429
commit
ccaf6ea59a
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue