diff options
author | Stan Hu <stanhu@gmail.com> | 2016-03-13 23:39:28 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-03-13 23:39:28 +0300 |
commit | a181722ae4dc0b1bb564d34b30e30f823cc72bc0 (patch) | |
tree | beb9197dfbe86df2b46263598df5f6bc94ad4067 /features/steps | |
parent | 30ab290b2829b84f4abb9d18f9b907bb9212f445 (diff) |
Improve award emoji test reliability and eliminate sleeps
Closes #14129
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/issues/award_emoji.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb index 135e1d016ae..ce2554bc80d 100644 --- a/features/steps/project/issues/award_emoji.rb +++ b/features/steps/project/issues/award_emoji.rb @@ -13,7 +13,6 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps thumbsup = page.first('.award-control') thumbsup.click thumbsup.hover - sleep 0.3 end end @@ -46,12 +45,10 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps end step 'I have award added' do - sleep 0.2 - page.within '.awards' do expect(page).to have_selector '.js-emoji-btn' expect(page.find('.js-emoji-btn.active .js-counter')).to have_content '1' - expect(page.find('.js-emoji-btn.active')['data-original-title']).to eq('me') + expect(page).to have_css(".js-emoji-btn.active[data-original-title='me']") end end |