summaryrefslogtreecommitdiff
path: root/features/project/issues/award_emoji.feature
blob: 2945bb3753a93bfe3439c92445d791f9edaf2fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@project_issues
Feature: Award Emoji
  Background:
    Given I sign in as a user
    And I own project "Shop"
    And project "Shop" has issue "Bugfix"
    And I visit "Bugfix" issue page

  @javascript
  Scenario: I repeatedly add and remove thumbsup award in the issue
    Given I click the thumbsup award Emoji
    Then I have award added
    Given I click the thumbsup award Emoji
    Then I have no awards added
    Given I click the thumbsup award Emoji
    Then I have award added

  @javascript
  Scenario: I add and remove custom 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

  @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"

  @javascript
  Scenario: I add award emoji using regular comment
    Given I leave comment with a single emoji
    Then I have award added