diff options
| author | dosire <sytses@gmail.com> | 2014-03-25 20:57:21 +0100 |
|---|---|---|
| committer | dosire <sytses@gmail.com> | 2014-03-25 20:57:21 +0100 |
| commit | b2e74741555f9cb9d58c3c44810803d0db39b9f3 (patch) | |
| tree | 413fa17b0afa673c08e88e96217fe459265e835a /features/project/commits/comments.feature | |
| parent | 775f686e0e6e126555910a32c5c400d24e90789e (diff) | |
| parent | 7f67e066dc9749d2532d220fafa3f397a5fe1f24 (diff) | |
| download | gitlab-ce-b2e74741555f9cb9d58c3c44810803d0db39b9f3.tar.gz | |
Merge branch 'master' into define-feature-request
Conflicts:
PROCESS.md
Diffstat (limited to 'features/project/commits/comments.feature')
| -rw-r--r-- | features/project/commits/comments.feature | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/features/project/commits/comments.feature b/features/project/commits/comments.feature new file mode 100644 index 00000000000..a1aa745a681 --- /dev/null +++ b/features/project/commits/comments.feature @@ -0,0 +1,48 @@ +Feature: Comments on commits + Background: + Given I sign in as a user + And I own project "Shop" + And I visit project commit page + + @javascript + Scenario: I can comment on a commit + Given I leave a comment like "XML attached" + 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't preview without text + Given I haven't written any comment text + Then I should not see the comment preview button + + @javascript + Scenario: I can preview with text + Given I write a comment like "Nice" + Then I should see the comment preview button + + @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:" + Then I should see the comment edit button + + @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" + And I delete a comment + Then I should not see a comment saying "XML attached" |
