diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-12-23 13:01:31 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-12-23 14:08:47 +0300 |
commit | efe98067da478a61a2d5e673b381c43eaace9d83 (patch) | |
tree | 26d048f2ec4e71cf3bc02b082d9e0b4ba632a702 /features | |
parent | 2803b6e84e94bb3a8d85ea9e29aeade450c842a7 (diff) |
emoji picker search
Diffstat (limited to 'features')
-rw-r--r-- | features/project/issues/award_emoji.feature | 6 | ||||
-rw-r--r-- | features/steps/project/issues/award_emoji.rb | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/features/project/issues/award_emoji.feature b/features/project/issues/award_emoji.feature index cbf2e7104ab..a996ae603fc 100644 --- a/features/project/issues/award_emoji.feature +++ b/features/project/issues/award_emoji.feature @@ -18,6 +18,12 @@ Feature: Award Emoji Given I click to emoji-picker Then I can see the activity and food categories + @javascript + Scenario: I can search emoji + Given I click to emoji-picker + And I search "hand" + Then I see search result for "hand" + @javascript Scenario: I add award emoji using regular comment Given I leave comment with a single emoji diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb index c94d0ba7306..a7e15398819 100644 --- a/features/steps/project/issues/award_emoji.rb +++ b/features/steps/project/issues/award_emoji.rb @@ -52,4 +52,16 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps click_button 'Add Comment' end end + + step 'I search "hand"' do + page.within('.emoji-menu-content') do + fill_in 'emoji_search', with: 'hand' + end + end + + step 'I see search result for "hand"' do + page.within '.emoji-menu-content' do + expect(page).to have_selector '[data-emoji="raised_hand"]' + end + end end |