diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-03-24 22:31:14 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-03-24 22:31:14 +0400 |
commit | 5b35000f16201bd631f161ef6d79b0a77dc2c27b (patch) | |
tree | 903e41d676c1939bae2cb8d6232c7fc9380bbff5 /features/project | |
parent | bc7c5f87bbd5cc25a0aaf03e9e5ecf6a65375098 (diff) | |
download | gitlab-ce-5b35000f16201bd631f161ef6d79b0a77dc2c27b.tar.gz |
Snippets feature refactored. Tests now use spinach
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/snippets.feature | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/features/project/snippets.feature b/features/project/snippets.feature new file mode 100644 index 00000000000..a26c8dc8474 --- /dev/null +++ b/features/project/snippets.feature @@ -0,0 +1,35 @@ +Feature: Project Snippets + Background: + Given I sign in as a user + And I own project "Shop" + And project "Shop" have "Snippet one" snippet + And project "Shop" have no "Snippet two" snippet + And I visit project "Shop" snippets page + + Scenario: I should see snippets + Given I visit project "Shop" snippets page + Then I should see "Snippet one" in snippets + And I should not see "Snippet two" in snippets + + Scenario: I create new project snippet + Given I click link "New Snippet" + And I submit new snippet "Snippet three" + Then I should see snippet "Snippet three" + + @javascript + Scenario: I comment on a snippet "Snippet one" + Given I visit snippet page "Snippet one" + And I leave a comment like "Good snippet!" + Then I should see comment "Good snippet!" + + Scenario: I update "Snippet one" + Given I visit snippet page "Snippet one" + And I click link "Edit" + And I submit new title "Snippet new title" + Then I should see "Snippet new title" + + Scenario: I destroy "Snippet one" + Given I visit snippet page "Snippet one" + And I click link "Edit" + And I click link "Destroy" + Then I should not see "Snippet one" in snippets |