2014-06-04 16:55:27 -04:00
|
|
|
@public
|
2014-10-02 12:42:54 -04:00
|
|
|
Feature: Explore Projects
|
2013-07-29 10:07:03 -04:00
|
|
|
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
|
2015-08-18 11:46:57 -04:00
|
|
|
Given archived project "Archive"
|
2013-07-29 10:07:03 -04:00
|
|
|
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"
|
2015-08-18 11:46:57 -04:00
|
|
|
And I should not see project "Archive"
|
2013-07-29 10:07:03 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-12-08 18:20:51 -05:00
|
|
|
Scenario: I visit an empty public project page as user with no ssh-keys
|
2013-12-03 21:13:19 -05:00
|
|
|
Given I sign in as a user
|
2015-12-08 18:20:51 -05:00
|
|
|
And I have no ssh keys
|
|
|
|
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 http clone info
|
|
|
|
|
|
|
|
Scenario: I visit an empty public project page as user with an ssh-key
|
|
|
|
Given I sign in as a user
|
2015-12-08 20:02:53 -05:00
|
|
|
And I have an ssh key
|
2013-12-03 21:13:19 -05:00
|
|
|
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
|
2015-08-18 11:46:57 -04:00
|
|
|
Given archived project "Archive"
|
|
|
|
And I sign in as a user
|
2013-11-06 10:13:21 -05:00
|
|
|
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"
|
2015-08-18 11:46:57 -04:00
|
|
|
And I should not see project "Archive"
|
2013-11-06 10:13:21 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
2015-12-08 18:20:51 -05:00
|
|
|
Scenario: I visit public project page as user with no ssh-keys
|
|
|
|
Given I sign in as a user
|
|
|
|
And I have no ssh keys
|
|
|
|
When I visit project "Community" page
|
|
|
|
Then I should see project "Community" home page
|
|
|
|
And I should see an http link to the repository
|
|
|
|
|
|
|
|
Scenario: I visit public project page as user with an ssh-key
|
2013-11-28 16:46:55 -05:00
|
|
|
Given I sign in as a user
|
2015-12-08 20:02:53 -05:00
|
|
|
And I have an ssh key
|
2013-11-28 16:46:55 -05:00
|
|
|
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
|
2014-02-01 11:47:54 -05:00
|
|
|
|
|
|
|
Scenario: I visit public project issues page as a non authorized user
|
|
|
|
Given I visit project "Community" page
|
2016-02-22 12:37:26 -05:00
|
|
|
Then I should not see command line instructions
|
2014-02-01 11:47:54 -05:00
|
|
|
And I visit "Community" issues page
|
|
|
|
Then I should see list of issues for "Community" project
|
2014-02-01 18:59:48 -05:00
|
|
|
|
2014-02-01 11:47:54 -05:00
|
|
|
Scenario: I visit public project issues page as authorized user
|
|
|
|
Given I sign in as a user
|
|
|
|
Given I visit project "Community" page
|
|
|
|
And I visit "Community" issues page
|
|
|
|
Then I should see list of issues for "Community" project
|
2014-02-01 18:59:48 -05:00
|
|
|
|
|
|
|
Scenario: I visit internal project issues page as authorized user
|
|
|
|
Given I sign in as a user
|
|
|
|
Given I visit project "Internal" page
|
|
|
|
And I visit "Internal" issues page
|
|
|
|
Then I should see list of issues for "Internal" project
|
2014-02-02 10:32:12 -05:00
|
|
|
|
|
|
|
Scenario: I visit public project merge requests page as an authorized user
|
|
|
|
Given I sign in as a user
|
|
|
|
Given I visit project "Community" page
|
|
|
|
And I visit "Community" merge requests page
|
2014-02-03 07:59:20 -05:00
|
|
|
And project "Community" has "Bug fix" open merge request
|
2014-02-02 10:32:12 -05:00
|
|
|
Then I should see list of merge requests for "Community" project
|
|
|
|
|
|
|
|
Scenario: I visit public project merge requests page as a non authorized user
|
|
|
|
Given I visit project "Community" page
|
|
|
|
And I visit "Community" merge requests page
|
2014-02-03 07:59:20 -05:00
|
|
|
And project "Community" has "Bug fix" open merge request
|
2014-02-02 10:32:12 -05:00
|
|
|
Then I should see list of merge requests for "Community" project
|
|
|
|
|
|
|
|
Scenario: I visit internal project merge requests page as an authorized user
|
|
|
|
Given I sign in as a user
|
|
|
|
Given I visit project "Internal" page
|
|
|
|
And I visit "Internal" merge requests page
|
2014-02-03 07:59:20 -05:00
|
|
|
And project "Internal" has "Feature implemented" open merge request
|
2014-02-02 10:32:12 -05:00
|
|
|
Then I should see list of merge requests for "Internal" project
|
2014-07-26 03:33:42 -04:00
|
|
|
|
|
|
|
Scenario: Trending page
|
2015-08-18 11:46:57 -04:00
|
|
|
Given archived project "Archive"
|
|
|
|
And project "Archive" has comments
|
|
|
|
And I sign in as a user
|
2014-07-26 03:33:42 -04:00
|
|
|
And project "Community" has comments
|
|
|
|
When I visit the explore trending projects
|
|
|
|
Then I should see project "Community"
|
|
|
|
And I should not see project "Internal"
|
|
|
|
And I should not see project "Enterprise"
|
2015-08-18 11:46:57 -04:00
|
|
|
And I should not see project "Archive"
|
2014-07-26 03:33:42 -04:00
|
|
|
|
|
|
|
Scenario: Most starred page
|
2015-08-18 11:46:57 -04:00
|
|
|
Given archived project "Archive"
|
|
|
|
And I sign in as a user
|
2014-07-26 03:33:42 -04:00
|
|
|
When I visit the explore starred projects
|
|
|
|
Then I should see project "Community"
|
|
|
|
And I should see project "Internal"
|
2016-03-04 13:24:47 -05:00
|
|
|
And I should not see project "Archive"
|