BigW Consortium Gitlab

active_tab.feature 4.03 KB
Newer Older
1
Feature: Project Active Tab
2 3 4 5 6 7 8 9 10 11 12
  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

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

40 41 42 43
  # Sub Tabs: Settings

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

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

56 57 58 59 60 61
  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

Stan Hu committed
62
  # Sub Tabs: Repository
63

Stan Hu committed
64
  Scenario: On Project Repository/Files
65 66 67
    Given I visit my project's files page
    Then the active sub tab should be Files
    And no other sub tabs should be active
Stan Hu committed
68
    And the active main tab should be Repository
69

Stan Hu committed
70
  Scenario: On Project Repository/Commits
71 72 73
    Given I visit my project's commits page
    Then the active sub tab should be Commits
    And no other sub tabs should be active
Stan Hu committed
74
    And the active main tab should be Repository
75

Stan Hu committed
76
  Scenario: On Project Repository/Network
77 78 79
    Given I visit my project's network page
    Then the active sub tab should be Network
    And no other sub tabs should be active
Stan Hu committed
80
    And the active main tab should be Repository
81

Stan Hu committed
82
  Scenario: On Project Repository/Compare
83 84 85 86
    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
Stan Hu committed
87
    And the active main tab should be Repository
88

Stan Hu committed
89
  Scenario: On Project Repository/Branches
90 91 92 93
    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
Stan Hu committed
94
    And the active main tab should be Repository
95

Stan Hu committed
96
  Scenario: On Project Repository/Tags
97 98 99 100
    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
Stan Hu committed
101
    And the active main tab should be Repository
102 103 104

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

  Scenario: On Project Issues/Milestones
    Given I visit my project's issues page
110 111 112
    And I click the "Milestones" sub tab
    Then the active main tab should be Issues
    Then the active sub tab should be Milestones
113
    And no other main tabs should be active
114
    And no other sub tabs should be active
115 116 117

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