From 9f949d4e24c5939b5ea4071c3e86c514b4d82970 Mon Sep 17 00:00:00 2001 From: mhasbini Date: Tue, 28 Feb 2017 22:38:19 +0200 Subject: add /award slash command add /award slash command; Allow posting of just an emoji in comment --- features/project/issues/award_emoji.feature | 2 +- features/steps/project/issues/award_emoji.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'features') diff --git a/features/project/issues/award_emoji.feature b/features/project/issues/award_emoji.feature index f0fd414a9f9..1d7adfdd2c2 100644 --- a/features/project/issues/award_emoji.feature +++ b/features/project/issues/award_emoji.feature @@ -42,4 +42,4 @@ Feature: Award Emoji @javascript Scenario: I add award emoji using regular comment Given I leave comment with a single emoji - Then I have award added + Then I have new comment with emoji added diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb index cbe5738e7e4..dd7a58b454a 100644 --- a/features/steps/project/issues/award_emoji.rb +++ b/features/steps/project/issues/award_emoji.rb @@ -44,6 +44,10 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps end end + step 'I have new comment with emoji added' do + expect(page).to have_selector ".emoji[title=':smile:']" + end + step 'I have award added' do page.within '.awards' do expect(page).to have_selector '.js-emoji-btn' -- cgit v1.2.1