summaryrefslogtreecommitdiff
path: root/features/steps/project/issues/award_emoji.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-01-29 12:58:34 +0000
committerPhil Hughes <me@iamphill.com>2016-01-29 12:58:34 +0000
commit5a04fc90996b233a294d4f679a0cc23877f187f1 (patch)
tree892316766ce910c33f01ccaf7901e55b07cfaee8 /features/steps/project/issues/award_emoji.rb
parent1b978727933e50ec4ddcd855f7f8a6216885ac4a (diff)
downloadgitlab-ce-5a04fc90996b233a294d4f679a0cc23877f187f1.tar.gz
Added tests to emoji search field focus
Diffstat (limited to 'features/steps/project/issues/award_emoji.rb')
-rw-r--r--features/steps/project/issues/award_emoji.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb
index 2c2ed08655e..69695d493f3 100644
--- a/features/steps/project/issues/award_emoji.rb
+++ b/features/steps/project/issues/award_emoji.rb
@@ -66,4 +66,8 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
expect(page).to have_selector '[data-emoji="raised_hand"]'
end
end
+
+ step 'The search field is focused' do
+ page.evaluate_script("document.activeElement.id").should eq "emoji_search"
+ end
end