summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorAnnabel Dunstone <a.dunstone89@gmail.com>2016-02-23 19:37:15 -0600
committerAnnabel Dunstone <a.dunstone89@gmail.com>2016-02-23 19:37:15 -0600
commit476a8049691951c4e1259cdbb164bbf1fca2bd1e (patch)
tree41b6edfbd91bf82c8e0b044bcf3d059c9032f84f /features
parent7bb378b33d1f02cbb9b09f0987d1d01cd6316671 (diff)
downloadgitlab-ce-476a8049691951c4e1259cdbb164bbf1fca2bd1e.tar.gz
Update award_emoji test
Diffstat (limited to 'features')
-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 ff9677ba972..277c63914d1 100644
--- a/features/steps/project/issues/award_emoji.rb
+++ b/features/steps/project/issues/award_emoji.rb
@@ -96,7 +96,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
end
step 'The search field is focused' do
- sleep 0.8
- page.evaluate_script("document.activeElement.id").should eq "emoji_search"
+ expect(page).to have_selector('#emoji_search')
+ expect(page.evaluate_script('document.activeElement.id')).to eq('emoji_search')
end
end