Skip to content
Snippets Groups Projects
Commit 5a04fc90 authored by Phil Hughes's avatar Phil Hughes
Browse files

Added tests to emoji search field focus

parent 1b978727
Branches
Tags
1 merge request!2650Auto-focus emoji award search field
Loading
Loading
@@ -9,6 +9,7 @@ Feature: Award Emoji
@javascript
Scenario: I add and remove award in the issue
Given I click to emoji-picker
Then The search field is focused
And I click to emoji in the picker
Then I have award added
And I can remove it by clicking to icon
Loading
Loading
@@ -16,11 +17,13 @@ Feature: Award Emoji
@javascript
Scenario: I can see the list of emoji categories
Given I click to emoji-picker
Then The search field is focused
Then I can see the activity and food categories
 
@javascript
Scenario: I can search emoji
Given I click to emoji-picker
Then The search field is focused
And I search "hand"
Then I see search result for "hand"
 
Loading
Loading
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment