Commit 9b034242 authored by Rémy Coutable's avatar Rémy Coutable

Use wait_for_requests instead of sleep 0.3

Signed-off-by: Rémy Coutable's avatarRémy Coutable <>
parent 896aa2a1
Pipeline #8970822 passed with stages
in 97 minutes and 52 seconds
......@@ -34,8 +34,8 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
page.within '.awards' do
expect do
sleep 0.3 change{ page.all(".award-control.js-emoji-btn").size }.from(3).to(2)
wait_for_requests change { page.all(".award-control.js-emoji-btn").size }.from(3).to(2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment