diff options
author | Rémy Coutable <remy@rymai.me> | 2017-04-26 12:19:20 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-26 12:19:20 +0300 |
commit | ccaf6ea59ab44e917125b411f17404e32f2d735a (patch) | |
tree | 31dfdaf3c0472f22d15961c041506f9b077b98c2 /features/steps/shared | |
parent | 3c6fad64296738239582ad449bb202cfd99ba7ff (diff) |
Wait for AJAX after steps defined in SharedActiveTab
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'features/steps/shared')
-rw-r--r-- | features/steps/shared/active_tab.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/features/steps/shared/active_tab.rb b/features/steps/shared/active_tab.rb index 4eef7aff213..8bae80a8707 100644 --- a/features/steps/shared/active_tab.rb +++ b/features/steps/shared/active_tab.rb @@ -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) |