summaryrefslogtreecommitdiff
path: root/features/project/active_tab.feature
blob: 5c14c5db665d00d0bd029a35a8d2d07415bb86ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
Feature: Project Active Tab
  Background:
    Given I sign in as a user
    And I own a project

  # Main Tabs

  Scenario: On Project Home
    Given I visit my project's home page
    Then the active main tab should be Home
    And no other main tabs should be active

  Scenario: On Project Repository
    Given I visit my project's files page
    Then the active main tab should be Repository
    And no other main tabs should be active

  Scenario: On Project Issues
    Given I visit my project's issues page
    Then the active main tab should be Issues
    And no other main tabs should be active

  Scenario: On Project Merge Requests
    Given I visit my project's merge requests page
    Then the active main tab should be Merge Requests
    And no other main tabs should be active

  Scenario: On Project Wiki
    Given I visit my project's wiki page
    Then the active main tab should be Wiki
    And no other main tabs should be active

  # Sub Tabs: Home

  Scenario: On Project Home/Show
    Given I visit my project's home page
    Then the active main tab should be Home
    And no other main tabs should be active

  # Sub Tabs: Settings

  Scenario: On Project Settings/Integrations
    Given I visit my project's settings page
    And I click the "Integrations" tab
    Then the active sub nav should be Integrations
    And no other sub navs should be active
    And the active main tab should be Settings

  Scenario: On Project Settings/Deploy Keys
    Given I visit my project's settings page
    And I click the "Deploy Keys" tab
    Then the active sub nav should be Deploy Keys
    And no other sub navs should be active
    And the active main tab should be Settings

  Scenario: On Project Settings/Pages
    Given I visit my project's settings page
    And I click the "Pages" tab
    Then the active sub nav should be Pages
    And no other sub navs should be active
    And the active main tab should be Settings

  Scenario: On Project Members
    Given I visit my project's members page
    Then the active sub nav should be Members
    And no other sub navs should be active
    And the active main tab should be Settings

  # Sub Tabs: Repository

  Scenario: On Project Repository/Files
    Given I visit my project's files page
    Then the active sub tab should be Files
    And no other sub tabs should be active
    And the active main tab should be Repository

  Scenario: On Project Repository/Commits
    Given I visit my project's commits page
    Then the active sub tab should be Commits
    And no other sub tabs should be active
    And the active main tab should be Repository

  Scenario: On Project Repository/Network
    Given I visit my project's network page
    Then the active sub tab should be Network
    And no other sub tabs should be active
    And the active main tab should be Repository

  Scenario: On Project Repository/Compare
    Given I visit my project's commits page
    And I click the "Compare" tab
    Then the active sub tab should be Compare
    And no other sub tabs should be active
    And the active main tab should be Repository

  Scenario: On Project Repository/Branches
    Given I visit my project's commits page
    And I click the "Branches" tab
    Then the active sub tab should be Branches
    And no other sub tabs should be active
    And the active main tab should be Repository

  Scenario: On Project Repository/Tags
    Given I visit my project's commits page
    And I click the "Tags" tab
    Then the active sub tab should be Tags
    And no other sub tabs should be active
    And the active main tab should be Repository

  Scenario: On Project Issues/Browse
    Given I visit my project's issues page
    Then the active main tab should be Issues
    And no other main tabs should be active

  Scenario: On Project Issues/Milestones
    Given I visit my project's issues page
    And I click the "Milestones" sub tab
    Then the active main tab should be Issues
    Then the active sub tab should be Milestones
    And no other main tabs should be active
    And no other sub tabs should be active

  Scenario: On Project Issues/Labels
    Given I visit my project's issues page
    And I click the "Labels" sub tab
    Then the active main tab should be Issues
    Then the active sub tab should be Labels
    And no other main tabs should be active
    And no other sub tabs should be active