OSDN Git Service

Fix 404 on project page for unauthenticated user
[wvm/gitlab.git] / features / public / public_projects.feature
1 Feature: Public Projects Feature
2   Background:
3     Given public project "Community"
4     And internal project "Internal"
5     And private project "Enterprise"
6
7   Scenario: I visit public area
8     When I visit the public projects area
9     Then I should see project "Community"
10     And I should not see project "Internal"
11     And I should not see project "Enterprise"
12
13   Scenario: I visit public project page
14     When I visit project "Community" page
15     Then I should see project "Community" home page
16
17   Scenario: I visit internal project page
18     When I visit project "Internal" page
19     Then I should be redirected to sign in page
20
21   Scenario: I visit private project page
22     When I visit project "Enterprise" page
23     Then I should be redirected to sign in page
24
25   Scenario: I visit an empty public project page
26     Given public empty project "Empty Public Project"
27     When I visit empty project page
28     Then I should see empty public project details
29
30   Scenario: I visit public area as user
31     Given I sign in as a user
32     When I visit the public projects area
33     Then I should see project "Community"
34     And I should see project "Internal"
35     And I should not see project "Enterprise"
36
37   Scenario: I visit internal project page as user
38     Given I sign in as a user
39     When I visit project "Internal" page
40     Then I should see project "Internal" home page
41
42   Scenario: I visit public project page
43     When I visit project "Community" page
44     Then I should see project "Community" home page
45     And I should see a http link to the repository
46
47   Scenario: I visit public area as user
48     Given I sign in as a user
49     When I visit project "Community" page
50     Then I should see project "Community" home page
51     And I should see a ssh link to the repository