BigW Consortium Gitlab

comments.feature 1.59 KB
Newer Older
Douwe Maan committed
1
@project_commits
2
Feature: Project Commits Comments
3 4
  Background:
    Given I sign in as a user
Dmitriy Zaporozhets committed
5
    And I own project "Shop"
6
    And I visit project commit page
Dmitriy Zaporozhets committed
7

8
  @javascript
9
  Scenario: I can comment on a commit
10
    Given I leave a comment like "XML attached"
11 12 13 14 15 16 17 18
    Then I should see a comment saying "XML attached"

  @javascript
  Scenario: I can't cancel the main form
    Then I should not see the cancel comment button

  @javascript
  Scenario: I can preview with text
19 20
    Given I write a comment like ":+1: Nice"
    Then The comment preview tab should be display rendered Markdown
21 22 23 24 25 26 27 28 29 30

  @javascript
  Scenario: I preview a comment
    Given I preview a comment text like "Bug fixed :smile:"
    Then I should see the comment preview
    And I should not see the comment text field

  @javascript
  Scenario: I can edit after preview
    Given I preview a comment text like "Bug fixed :smile:"
31
    Then I should see the comment write tab
32 33 34 35 36 37 38 39 40 41 42

  @javascript
  Scenario: I have a reset form after posting from preview
    Given I preview a comment text like "Bug fixed :smile:"
    And I submit the comment
    Then I should see an empty comment text field
    And I should not see the comment preview

  @javascript
  Scenario: I can delete a comment
    Given I leave a comment like "XML attached"
Robert Speicher committed
43
    Then I should see a comment saying "XML attached"
44 45
    And I delete a comment
    Then I should not see a comment saying "XML attached"
46 47 48 49 50 51

  @javascript
  Scenario: I can edit a comment with +1
    Given I leave a comment like "XML attached"
    And I edit the last comment with a +1
    Then I should see +1 in the description