Wait for AJAX after steps defined in SharedActiveTab

Signed-off-by: NRémy Coutable <remy@rymai.me>
上级 3c6fad64
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册