Commit 0f51b37f authored by Kamil Trzcinski's avatar Kamil Trzcinski

Add tests for Active Tab

parent 83d3ffb1
.panel.panel-default
.nothing-here-block
GitLab Pages is disabled.
GitLab Pages are disabled.
Ask your system's administrator to enable it.
......@@ -70,6 +70,13 @@ Feature: Project Active Tab
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
# Sub Tabs: Commits
Scenario: On Project Commits/Commits
......
......@@ -33,6 +33,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
click_link('Deploy Keys')
end
step 'I click the "Pages" tab' do
click_link('Pages')
end
step 'the active sub nav should be Team' do
ensure_active_sub_nav('Members')
end
......@@ -49,6 +53,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
ensure_active_sub_nav('Deploy Keys')
end
step 'the active sub nav should be Pages' do
ensure_active_sub_nav('Pages')
end
# Sub Tabs: Commits
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