summaryrefslogtreecommitdiff
path: root/features/support
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-12 17:10:12 -0500
committerDouwe Maan <douwe@selenight.nl>2017-05-12 17:10:12 -0500
commit718350dc9fbfea4836f0cfb2955d3d8653ba7901 (patch)
treeece139dee47d0af85279f79b029628e7c65c23cc /features/support
parentec1a3c093f7a8d2fe29e46ec06e6b35e3f1d97ff (diff)
downloadgitlab-ce-718350dc9fbfea4836f0cfb2955d3d8653ba7901.tar.gz
Wait for requests after each Spinach scenario instead of featuredm-wait-for-requests
Diffstat (limited to 'features/support')
-rw-r--r--features/support/env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index 568eeae4479..23a1f702068 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -30,8 +30,8 @@ Spinach.hooks.before_run do
include FactoryGirl::Syntax::Methods
end
-Spinach.hooks.after_feature do |feature_data|
- if feature_data.scenarios.flat_map(&:tags).include?('javascript')
+Spinach.hooks.after_scenario do |scenario_data, step_definitions|
+ if scenario_data.tags.include?('javascript')
include WaitForRequests
wait_for_requests_complete
end