2013-07-29 10:07:03 -04:00
|
|
|
Feature: Public Projects Feature
|
|
|
|
Background:
|
|
|
|
Given public project "Community"
|
2013-11-06 10:13:21 -05:00
|
|
|
And internal project "Internal"
|
2013-07-29 10:07:03 -04:00
|
|
|
And private project "Enterprise"
|
|
|
|
|
|
|
|
Scenario: I visit public area
|
|
|
|
When I visit the public projects area
|
|
|
|
Then I should see project "Community"
|
2013-11-06 10:13:21 -05:00
|
|
|
And I should not see project "Internal"
|
2013-07-29 10:07:03 -04:00
|
|
|
And I should not see project "Enterprise"
|
|
|
|
|
|
|
|
Scenario: I visit public project page
|
2013-09-24 15:14:28 -04:00
|
|
|
When I visit project "Community" page
|
|
|
|
Then I should see project "Community" home page
|
2013-09-20 11:39:12 -04:00
|
|
|
|
2013-11-06 10:13:21 -05:00
|
|
|
Scenario: I visit internal project page
|
|
|
|
When I visit project "Internal" page
|
2013-12-03 09:22:33 -05:00
|
|
|
Then I should be redirected to sign in page
|
2013-11-06 10:13:21 -05:00
|
|
|
|
|
|
|
Scenario: I visit private project page
|
|
|
|
When I visit project "Enterprise" page
|
2013-12-03 09:22:33 -05:00
|
|
|
Then I should be redirected to sign in page
|
2013-11-06 10:13:21 -05:00
|
|
|
|
2013-09-20 11:39:12 -04:00
|
|
|
Scenario: I visit an empty public project page
|
|
|
|
Given public empty project "Empty Public Project"
|
2013-09-24 15:14:28 -04:00
|
|
|
When I visit empty project page
|
|
|
|
Then I should see empty public project details
|
2013-12-03 21:13:19 -05:00
|
|
|
And I should see empty public project details with http clone info
|
|
|
|
|
|
|
|
Scenario: I visit an empty public project page as user
|
|
|
|
Given I sign in as a user
|
|
|
|
And public empty project "Empty Public Project"
|
|
|
|
When I visit empty project page
|
|
|
|
Then I should see empty public project details
|
|
|
|
And I should see empty public project details with ssh clone info
|
2013-11-06 10:13:21 -05:00
|
|
|
|
|
|
|
Scenario: I visit public area as user
|
|
|
|
Given I sign in as a user
|
|
|
|
When I visit the public projects area
|
|
|
|
Then I should see project "Community"
|
|
|
|
And I should see project "Internal"
|
|
|
|
And I should not see project "Enterprise"
|
|
|
|
|
|
|
|
Scenario: I visit internal project page as user
|
|
|
|
Given I sign in as a user
|
|
|
|
When I visit project "Internal" page
|
|
|
|
Then I should see project "Internal" home page
|
2013-11-28 16:46:55 -05:00
|
|
|
|
|
|
|
Scenario: I visit public project page
|
|
|
|
When I visit project "Community" page
|
|
|
|
Then I should see project "Community" home page
|
2013-12-03 21:13:19 -05:00
|
|
|
And I should see an http link to the repository
|
2013-11-28 16:46:55 -05:00
|
|
|
|
2013-12-03 21:13:19 -05:00
|
|
|
Scenario: I visit public project page as user
|
2013-11-28 16:46:55 -05:00
|
|
|
Given I sign in as a user
|
|
|
|
When I visit project "Community" page
|
|
|
|
Then I should see project "Community" home page
|
2013-12-03 21:13:19 -05:00
|
|
|
And I should see an ssh link to the repository
|
|
|
|
|
|
|
|
Scenario: I visit an empty public project page
|
|
|
|
Given public empty project "Empty Public Project"
|
|
|
|
When I visit empty project page
|
|
|
|
Then I should see empty public project details
|