diff options
| author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-06-26 09:49:14 +0200 |
|---|---|---|
| committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-07-17 22:47:16 +0200 |
| commit | 714f7201d3362793d11f33793e5ef6dc83bdd2f0 (patch) | |
| tree | 54e6a4cc5ef89e132a123231b439b83de0e54d54 /features/project/star.feature | |
| parent | b634d2801e6abdd039447f53ec5d9cf709f66b06 (diff) | |
| download | gitlab-ce-714f7201d3362793d11f33793e5ef6dc83bdd2f0.tar.gz | |
Add project stars.
Diffstat (limited to 'features/project/star.feature')
| -rw-r--r-- | features/project/star.feature | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/features/project/star.feature b/features/project/star.feature new file mode 100644 index 00000000000..e6cbc78125b --- /dev/null +++ b/features/project/star.feature @@ -0,0 +1,48 @@ +Feature: Project Star + Scenario: New projects have 0 stars + Given public project "Community" + When I visit project "Community" page + Then The project has 0 stars + + Scenario: Empty projects show star count + Given public empty project "Empty Public Project" + When I visit empty project page + Then The project has 0 stars + + Scenario: Signed off users can't star projects + Given public project "Community" + And I visit project "Community" page + When I click on the star toggle button + Then The project has 0 stars + + @javascript + Scenario: Signed in users can toggle star + Given I sign in as "John Doe" + And public project "Community" + And I visit project "Community" page + When I click on the star toggle button + Then The project has 1 star + When I click on the star toggle button + Then The project has 0 stars + + @javascript + Scenario: Star count sums stars + Given I sign in as "John Doe" + And public project "Community" + And I visit project "Community" page + And I click on the star toggle button + And I logout + And I sign in as "Mary Jane" + And I visit project "Community" page + When I click on the star toggle button + Then The project has 2 stars + + @javascript + Scenario: If an user deletes his account his stars are destroyed + Given I sign in as "John Doe" + And public project "Community" + And I visit project "Community" page + And I click on the star toggle button + And I delete my account + When I visit project "Community" page + Then The project has 0 stars |
