Commit 6a6a3345 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix active tab tests

parent 00ac5644
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
&.no-highlight { &.no-highlight {
background: none; background: none;
border: none;
} }
i { i {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
%span %span
Back to project Back to project
= nav_link(html_options: {class: "separate-item"}) do = nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do
= link_to edit_project_path(@project), title: 'Settings', class: "stat-tab tab no-highlight" do = link_to edit_project_path(@project), title: 'Settings', class: "stat-tab tab no-highlight" do
%i.fa.fa-cogs %i.fa.fa-cogs
%span %span
......
...@@ -106,24 +106,19 @@ Feature: Project Active Tab ...@@ -106,24 +106,19 @@ Feature: Project Active Tab
And no other sub tabs should be active And no other sub tabs should be active
And the active main tab should be Commits And the active main tab should be Commits
# Sub Tabs: Issues
Scenario: On Project Issues/Browse Scenario: On Project Issues/Browse
Given I visit my project's issues page Given I visit my project's issues page
Then the active sub tab should be Issues Then the active main tab should be Issues
And no other sub tabs should be active And no other main tabs should be active
And the active main tab should be Issues
Scenario: On Project Issues/Milestones Scenario: On Project Issues/Milestones
Given I visit my project's issues page Given I visit my project's issues page
And I click the "Milestones" tab And I click the "Milestones" tab
Then the active sub tab should be Milestones Then the active main tab should be Milestones
And no other sub tabs should be active And no other main tabs should be active
And the active main tab should be Issues
Scenario: On Project Issues/Labels Scenario: On Project Issues/Labels
Given I visit my project's issues page Given I visit my project's issues page
And I click the "Labels" tab And I click the "Labels" tab
Then the active sub tab should be Labels Then the active main tab should be Labels
And no other sub tabs should be active And no other main tabs should be active
And the active main tab should be Issues
...@@ -93,11 +93,11 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps ...@@ -93,11 +93,11 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
ensure_active_sub_tab('Issues') ensure_active_sub_tab('Issues')
end end
step 'the active sub tab should be Milestones' do step 'the active main tab should be Milestones' do
ensure_active_sub_tab('Milestones') ensure_active_main_tab('Milestones')
end end
step 'the active sub tab should be Labels' do step 'the active main tab should be Labels' do
ensure_active_sub_tab('Labels') ensure_active_main_tab('Labels')
end end
end end
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