diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-14 23:55:02 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-15 00:52:55 +0100 |
commit | f8e1f4a7c9ee2554efcf7376a0cfbefae8956d7b (patch) | |
tree | 7397bc6ca94310d9317c7970700d6bd9b25ecedf /features/project | |
parent | 30227869482bbbdbfea153f2b45ef3bb9a9fd218 (diff) | |
download | gitlab-ce-f8e1f4a7c9ee2554efcf7376a0cfbefae8956d7b.tar.gz |
Replace commit note request specs with spinach features
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/commits/commit_comments.feature | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/features/project/commits/commit_comments.feature b/features/project/commits/commit_comments.feature index 5acf541ab96..a1aa745a681 100644 --- a/features/project/commits/commit_comments.feature +++ b/features/project/commits/commit_comments.feature @@ -1,10 +1,48 @@ -Feature: Project Comment commit +Feature: Comments on commits Background: Given I sign in as a user And I own project "Shop" - Given I visit project commit page + And I visit project commit page @javascript - Scenario: I comment commit + Scenario: I can comment on a commit Given I leave a comment like "XML attached" - Then I should see comment "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" |