From 32e2783fb91a27d750b6a767d9726e68081c2e69 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Wed, 5 Apr 2017 03:54:37 -0700 Subject: [PATCH] Potential fix for intermittent spec failure in award emoji specs Hover and then click seems to make this work more reliably. Closes #30399 --- features/steps/project/issues/award_emoji.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb index e55dc2913c3..a4cfc1fb8c8 100644 --- a/features/steps/project/issues/award_emoji.rb +++ b/features/steps/project/issues/award_emoji.rb @@ -24,7 +24,9 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps step 'I click to emoji in the picker' do page.within '.emoji-menu-content' do - page.first('.js-emoji-btn').click + emoji_button = page.first('.js-emoji-btn') + emoji_button.hover + emoji_button.click end end