summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-26 11:19:20 +0200
committerRémy Coutable <remy@rymai.me>2017-04-26 11:19:20 +0200
commitccaf6ea59ab44e917125b411f17404e32f2d735a (patch)
tree31dfdaf3c0472f22d15961c041506f9b077b98c2
parent3c6fad64296738239582ad449bb202cfd99ba7ff (diff)
downloadgitlab-ce-31439-fix-transient-spinach-failures.tar.gz
Wait for AJAX after steps defined in SharedActiveTab31439-fix-transient-spinach-failures
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--features/steps/shared/active_tab.rb5
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)