Commit db35f3dc authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by James Edwards-Jones

Add tests for Active Tab

parent b7fd7dae
.panel.panel-default .panel.panel-default
.nothing-here-block .nothing-here-block
GitLab Pages is disabled. GitLab Pages are disabled.
Ask your system's administrator to enable it. Ask your system's administrator to enable it.
...@@ -53,6 +53,13 @@ Feature: Project Active Tab ...@@ -53,6 +53,13 @@ Feature: Project Active Tab
And no other sub navs should be active And no other sub navs should be active
And the active main tab should be Settings 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 Scenario: On Project Members
Given I visit my project's members page Given I visit my project's members page
Then the active sub nav should be Members Then the active sub nav should be Members
......
...@@ -35,6 +35,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps ...@@ -35,6 +35,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
click_link('Deploy Keys') click_link('Deploy Keys')
end end
step 'I click the "Pages" tab' do
click_link('Pages')
end
step 'the active sub nav should be Members' do step 'the active sub nav should be Members' do
ensure_active_sub_nav('Members') ensure_active_sub_nav('Members')
end end
...@@ -47,6 +51,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps ...@@ -47,6 +51,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
ensure_active_sub_nav('Deploy Keys') ensure_active_sub_nav('Deploy Keys')
end end
step 'the active sub nav should be Pages' do
ensure_active_sub_nav('Pages')
end
# Sub Tabs: Commits # Sub Tabs: Commits
step 'I click the "Compare" tab' do step 'I click the "Compare" tab' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment