summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-13 10:57:33 +0200
committerRémy Coutable <remy@rymai.me>2017-06-13 10:57:33 +0200
commit9b03424225f23bb6ac45b0b8c84a88d4b5bbe0e4 (patch)
tree399e8db45333cfae3cff5dfff927a5480dbb362a
parent896aa2a1f0a79a18ad1cd7530fa0c6acaa41288d (diff)
downloadgitlab-ce-9b03424225f23bb6ac45b0b8c84a88d4b5bbe0e4.tar.gz
Use wait_for_requests instead of sleep 0.3
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--features/steps/project/issues/award_emoji.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb
index dfd0bc13305..2324edda975 100644
--- a/features/steps/project/issues/award_emoji.rb
+++ b/features/steps/project/issues/award_emoji.rb
@@ -34,8 +34,8 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
page.within '.awards' do
expect do
page.find('.js-emoji-btn.active').click
- sleep 0.3
- end.to change{ page.all(".award-control.js-emoji-btn").size }.from(3).to(2)
+ wait_for_requests
+ end.to change { page.all(".award-control.js-emoji-btn").size }.from(3).to(2)
end
end