gitlab-org--gitlab-foss/features/project/star.feature

40 lines
1.2 KiB
Gherkin
Raw Normal View History

2015-12-23 12:26:41 -05:00
@project-stars
2014-06-26 03:49:14 -04:00
Feature: Project Star
Scenario: New projects have 0 stars
Given public project "Community"
When I visit project "Community" page
Then The project has no stars
2014-06-26 03:49:14 -04:00
Scenario: Empty projects show star count
Given public empty project "Empty Public Project"
When I visit empty project page
Then The project has no stars
2014-06-26 03:49:14 -04:00
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 I redirected to sign in page
2014-06-26 03:49:14 -04:00
@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