OSDN Git Service

Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
[wvm/gitlab.git] / features / project / active_tab.feature
1 Feature: Project active tab
2   Background:
3     Given I sign in as a user
4     And I own a project
5
6   # Main Tabs
7
8   Scenario: On Project Home
9     Given I visit my project's home page
10     Then the active main tab should be Home
11     And no other main tabs should be active
12
13   Scenario: On Project Files
14     Given I visit my project's files page
15     Then the active main tab should be Files
16     And no other main tabs should be active
17
18   Scenario: On Project Commits
19     Given I visit my project's commits page
20     Then the active main tab should be Commits
21     And no other main tabs should be active
22
23   Scenario: On Project Network
24     Given I visit my project's network page
25     Then the active main tab should be Network
26     And no other main tabs should be active
27
28   Scenario: On Project Issues
29     Given I visit my project's issues page
30     Then the active main tab should be Issues
31     And no other main tabs should be active
32
33   Scenario: On Project Merge Requests
34     Given I visit my project's merge requests page
35     Then the active main tab should be Merge Requests
36     And no other main tabs should be active
37
38   Scenario: On Project Wall
39     Given I visit my project's wall page
40     Then the active main tab should be Wall
41     And no other main tabs should be active
42
43   Scenario: On Project Wiki
44     Given I visit my project's wiki page
45     Then the active main tab should be Wiki
46     And no other main tabs should be active
47
48   # Sub Tabs: Home
49
50   Scenario: On Project Home/Show
51     Given I visit my project's home page
52     Then the active main tab should be Home
53     And no other main tabs should be active
54
55   # Sub Tabs: Settings
56
57   Scenario: On Project Settings/Team
58     Given I visit my project's settings page
59     And I click the "Team" tab
60     Then the active sub nav should be Team
61     And no other sub navs should be active
62     And the active main tab should be Settings
63
64   Scenario: On Project Settings/Edit
65     Given I visit my project's settings page
66     And I click the "Edit" tab
67     Then the active sub nav should be Edit
68     And no other sub navs should be active
69     And the active main tab should be Settings
70
71   Scenario: On Project Settings/Hooks
72     Given I visit my project's settings page
73     And I click the "Hooks" tab
74     Then the active sub nav should be Hooks
75     And no other sub navs should be active
76     And the active main tab should be Settings
77
78   Scenario: On Project Settings/Deploy Keys
79     Given I visit my project's settings page
80     And I click the "Deploy Keys" tab
81     Then the active sub nav should be Deploy Keys
82     And no other sub navs should be active
83     And the active main tab should be Settings
84
85   # Sub Tabs: Commits
86
87   Scenario: On Project Commits/Commits
88     Given I visit my project's commits page
89     Then the active sub tab should be Commits
90     And no other sub tabs should be active
91     And the active main tab should be Commits
92
93   Scenario: On Project Commits/Compare
94     Given I visit my project's commits page
95     And I click the "Compare" tab
96     Then the active sub tab should be Compare
97     And no other sub tabs should be active
98     And the active main tab should be Commits
99
100   Scenario: On Project Commits/Branches
101     Given I visit my project's commits page
102     And I click the "Branches" tab
103     Then the active sub tab should be Branches
104     And no other sub tabs should be active
105     And the active main tab should be Commits
106
107   Scenario: On Project Commits/Tags
108     Given I visit my project's commits page
109     And I click the "Tags" tab
110     Then the active sub tab should be Tags
111     And no other sub tabs should be active
112     And the active main tab should be Commits
113
114   # Sub Tabs: Issues
115
116   Scenario: On Project Issues/Browse
117     Given I visit my project's issues page
118     Then the active sub tab should be Browse Issues
119     And no other sub tabs should be active
120     And the active main tab should be Issues
121
122   Scenario: On Project Issues/Milestones
123     Given I visit my project's issues page
124     And I click the "Milestones" tab
125     Then the active sub tab should be Milestones
126     And no other sub tabs should be active
127     And the active main tab should be Issues
128
129   Scenario: On Project Issues/Labels
130     Given I visit my project's issues page
131     And I click the "Labels" tab
132     Then the active sub tab should be Labels
133     And no other sub tabs should be active
134     And the active main tab should be Issues