active_tab.feature 4.7 KB
Newer Older
C
Ciro Santilli 已提交
1
Feature: Project Active Tab
2 3 4 5 6 7 8 9
  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
10 11 12
    Then the active sub tab should be Home
    And no other sub tabs should be active
    And the active main tab should be Project
13

S
Stan Hu 已提交
14
  Scenario: On Project Repository
15
    Given I visit my project's files page
S
Stan Hu 已提交
16
    Then the active main tab should be Repository
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
    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
38 39 40
    Then the active sub tab should be Home
    And no other sub tabs should be active
    And the active main tab should be Project
41
    And no other main tabs should be active
42

43 44 45 46 47 48 49
  Scenario: On Project Home/Activity
    Given I visit my project's home page
    And I click the "Activity" tab
    Then the active sub tab should be Activity
    And no other sub tabs should be active
    And the active main tab should be Project

50 51
  # Sub Tabs: Settings

J
Jose Ivan Vargas 已提交
52
  Scenario: On Project Settings/Integrations
53
    Given I visit my project's settings page
J
Jose Ivan Vargas 已提交
54
    And I click the "Integrations" tab
55 56
    Then the active sub tab should be Integrations
    And no other sub tabs should be active
57
    And the active main tab should be Settings
58

59
  Scenario: On Project Settings/Repository
60
    Given I visit my project's settings page
61
    And I click the "Repository" tab
62 63
    Then the active sub tab should be Repository
    And no other sub tabs should be active
64
    And the active main tab should be Settings
65

66 67
  Scenario: On Project Members
    Given I visit my project's members page
68 69
    Then the active sub tab should be Members
    And no other sub tabs should be active
70 71
    And the active main tab should be Settings

S
Stan Hu 已提交
72
  # Sub Tabs: Repository
73

S
Stan Hu 已提交
74
  Scenario: On Project Repository/Files
75 76 77
    Given I visit my project's files page
    Then the active sub tab should be Files
    And no other sub tabs should be active
S
Stan Hu 已提交
78
    And the active main tab should be Repository
79

S
Stan Hu 已提交
80
  Scenario: On Project Repository/Commits
81 82 83
    Given I visit my project's commits page
    Then the active sub tab should be Commits
    And no other sub tabs should be active
S
Stan Hu 已提交
84
    And the active main tab should be Repository
85

86 87 88
  Scenario: On Project Repository/Graph
    Given I visit my project's graph page
    Then the active sub tab should be Graph
89
    And no other sub tabs should be active
S
Stan Hu 已提交
90
    And the active main tab should be Repository
91

S
Stan Hu 已提交
92
  Scenario: On Project Repository/Compare
93 94 95 96
    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
S
Stan Hu 已提交
97
    And the active main tab should be Repository
98

99 100 101 102 103 104 105
  Scenario: On Project Repository/Charts
    Given I visit my project's commits page
    And I click the "Charts" tab
    Then the active sub tab should be Charts
    And no other sub tabs should be active
    And the active main tab should be Repository

S
Stan Hu 已提交
106
  Scenario: On Project Repository/Branches
107 108 109 110
    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
S
Stan Hu 已提交
111
    And the active main tab should be Repository
112

S
Stan Hu 已提交
113
  Scenario: On Project Repository/Tags
114 115 116 117
    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
S
Stan Hu 已提交
118
    And the active main tab should be Repository
119 120 121

  Scenario: On Project Issues/Browse
    Given I visit my project's issues page
D
Dmitriy Zaporozhets 已提交
122 123
    Then the active main tab should be Issues
    And no other main tabs should be active
124 125 126

  Scenario: On Project Issues/Milestones
    Given I visit my project's issues page
127 128 129
    And I click the "Milestones" sub tab
    Then the active main tab should be Issues
    Then the active sub tab should be Milestones
D
Dmitriy Zaporozhets 已提交
130
    And no other main tabs should be active
131
    And no other sub tabs should be active
132 133 134

  Scenario: On Project Issues/Labels
    Given I visit my project's issues page
135 136 137
    And I click the "Labels" sub tab
    Then the active main tab should be Issues
    Then the active sub tab should be Labels
D
Dmitriy Zaporozhets 已提交
138
    And no other main tabs should be active
139
    And no other sub tabs should be active