diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-13 11:57:33 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-13 11:57:33 +0300 |
commit | 9b03424225f23bb6ac45b0b8c84a88d4b5bbe0e4 (patch) | |
tree | 399e8db45333cfae3cff5dfff927a5480dbb362a /features/steps/project/issues | |
parent | 896aa2a1f0a79a18ad1cd7530fa0c6acaa41288d (diff) |
Use wait_for_requests instead of sleep 0.3
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'features/steps/project/issues')
-rw-r--r-- | features/steps/project/issues/award_emoji.rb | 4 |
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 |