2014-10-02 12:42:54 -04:00
|
|
|
Feature: Project Active Tab
|
2012-09-25 20:11:57 -04:00
|
|
|
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
|
2017-03-06 18:52:57 -05:00
|
|
|
Then the active sub tab should be Home
|
|
|
|
And no other sub tabs should be active
|
|
|
|
And the active main tab should be Project
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2016-06-21 10:54:02 -04:00
|
|
|
Scenario: On Project Repository
|
2012-09-25 20:11:57 -04:00
|
|
|
Given I visit my project's files page
|
2016-06-21 10:54:02 -04:00
|
|
|
Then the active main tab should be Repository
|
2012-09-25 20:11:57 -04:00
|
|
|
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
|
2017-03-06 18:52:57 -05:00
|
|
|
Then the active sub tab should be Home
|
|
|
|
And no other sub tabs should be active
|
|
|
|
And the active main tab should be Project
|
2013-03-14 15:51:44 -04:00
|
|
|
And no other main tabs should be active
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2017-03-06 18:52:57 -05:00
|
|
|
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
|
|
|
|
|
2013-03-14 15:51:44 -04:00
|
|
|
# Sub Tabs: Settings
|
|
|
|
|
2016-12-30 16:09:31 -05:00
|
|
|
Scenario: On Project Settings/Integrations
|
2013-03-14 15:51:44 -04:00
|
|
|
Given I visit my project's settings page
|
2016-12-30 16:09:31 -05:00
|
|
|
And I click the "Integrations" tab
|
2017-03-07 16:59:06 -05:00
|
|
|
Then the active sub tab should be Integrations
|
|
|
|
And no other sub tabs should be active
|
2013-03-14 15:51:44 -04:00
|
|
|
And the active main tab should be Settings
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2017-01-30 14:21:02 -05:00
|
|
|
Scenario: On Project Settings/Repository
|
2013-03-14 15:51:44 -04:00
|
|
|
Given I visit my project's settings page
|
2017-01-30 14:21:02 -05:00
|
|
|
And I click the "Repository" tab
|
2017-03-07 16:59:06 -05:00
|
|
|
Then the active sub tab should be Repository
|
|
|
|
And no other sub tabs should be active
|
2013-03-14 15:51:44 -04:00
|
|
|
And the active main tab should be Settings
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2016-05-16 13:36:27 -04:00
|
|
|
Scenario: On Project Members
|
|
|
|
Given I visit my project's members page
|
2017-03-07 16:59:06 -05:00
|
|
|
Then the active sub tab should be Members
|
|
|
|
And no other sub tabs should be active
|
2016-05-16 13:36:27 -04:00
|
|
|
And the active main tab should be Settings
|
|
|
|
|
2016-06-21 10:54:02 -04:00
|
|
|
# Sub Tabs: Repository
|
2016-06-02 12:35:46 -04:00
|
|
|
|
2016-06-21 10:54:02 -04:00
|
|
|
Scenario: On Project Repository/Files
|
2016-06-02 12:35:46 -04:00
|
|
|
Given I visit my project's files page
|
|
|
|
Then the active sub tab should be Files
|
|
|
|
And no other sub tabs should be active
|
2016-06-21 10:54:02 -04:00
|
|
|
And the active main tab should be Repository
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2016-06-21 10:54:02 -04:00
|
|
|
Scenario: On Project Repository/Commits
|
2012-09-25 20:11:57 -04:00
|
|
|
Given I visit my project's commits page
|
|
|
|
Then the active sub tab should be Commits
|
|
|
|
And no other sub tabs should be active
|
2016-06-21 10:54:02 -04:00
|
|
|
And the active main tab should be Repository
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2017-03-02 12:57:01 -05:00
|
|
|
Scenario: On Project Repository/Graph
|
|
|
|
Given I visit my project's graph page
|
|
|
|
Then the active sub tab should be Graph
|
2015-12-08 20:50:46 -05:00
|
|
|
And no other sub tabs should be active
|
2016-06-21 10:54:02 -04:00
|
|
|
And the active main tab should be Repository
|
2015-12-08 20:50:46 -05:00
|
|
|
|
2016-06-21 10:54:02 -04:00
|
|
|
Scenario: On Project Repository/Compare
|
2012-09-25 20:11:57 -04:00
|
|
|
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
|
2016-06-21 10:54:02 -04:00
|
|
|
And the active main tab should be Repository
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2017-03-06 18:52:57 -05:00
|
|
|
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
|
|
|
|
|
2016-06-21 10:54:02 -04:00
|
|
|
Scenario: On Project Repository/Branches
|
2012-09-25 20:11:57 -04:00
|
|
|
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
|
2016-06-21 10:54:02 -04:00
|
|
|
And the active main tab should be Repository
|
2012-09-25 20:11:57 -04:00
|
|
|
|
2016-06-21 10:54:02 -04:00
|
|
|
Scenario: On Project Repository/Tags
|
2012-09-25 20:11:57 -04:00
|
|
|
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
|
2016-06-21 10:54:02 -04:00
|
|
|
And the active main tab should be Repository
|
2012-09-25 20:11:57 -04:00
|
|
|
|
|
|
|
Scenario: On Project Issues/Browse
|
|
|
|
Given I visit my project's issues page
|
2015-02-19 20:24:34 -05:00
|
|
|
Then the active main tab should be Issues
|
|
|
|
And no other main tabs should be active
|
2012-09-25 20:11:57 -04:00
|
|
|
|
|
|
|
Scenario: On Project Issues/Milestones
|
|
|
|
Given I visit my project's issues page
|
2016-06-10 11:33:44 -04:00
|
|
|
And I click the "Milestones" sub tab
|
|
|
|
Then the active main tab should be Issues
|
|
|
|
Then the active sub tab should be Milestones
|
2015-02-19 20:24:34 -05:00
|
|
|
And no other main tabs should be active
|
2016-06-10 11:33:44 -04:00
|
|
|
And no other sub tabs should be active
|
2012-09-25 20:11:57 -04:00
|
|
|
|
|
|
|
Scenario: On Project Issues/Labels
|
|
|
|
Given I visit my project's issues page
|
2016-06-10 11:33:44 -04:00
|
|
|
And I click the "Labels" sub tab
|
|
|
|
Then the active main tab should be Issues
|
|
|
|
Then the active sub tab should be Labels
|
2015-02-19 20:24:34 -05:00
|
|
|
And no other main tabs should be active
|
2016-06-10 11:33:44 -04:00
|
|
|
And no other sub tabs should be active
|