diff --git a/features/project/issues/award_emoji.feature b/features/project/issues/award_emoji.feature index 0ce99e855c6f91b0c8d0c16af8f065963647146e..cbf2e7104ab527bd6c2b676c2d0e64152ded42a8 100644 --- a/features/project/issues/award_emoji.feature +++ b/features/project/issues/award_emoji.feature @@ -13,6 +13,11 @@ Feature: Award Emoji Then I have award added And I can remove it by clicking to icon + @javascript + Scenario: I can see the list of emoji categories + Given I click to emoji-picker + Then I can see the activity and food categories + @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 e367323f4a57a708abae1c30940bdb5a64582268..c94d0ba7306efa39e140255a9b19c8709f5161b0 100644 --- a/features/steps/project/issues/award_emoji.rb +++ b/features/steps/project/issues/award_emoji.rb @@ -27,6 +27,13 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps end end + step 'I can see the activity and food categories' do + page.within '.emoji-menu' do + expect(page).to_not have_selector 'Activity' + expect(page).to_not have_selector 'Food' + end + end + step 'I have award added' do page.within '.awards' do expect(page).to have_selector '.award'