Commit 84794051 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix some active tab tests that are broken because of 2 level sidebar

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 4a8bd9fa
......@@ -15,7 +15,7 @@
= icon('dashboard fw')
%span
Activity
= nav_link(path: ['groups#index']) do
= nav_link(path: ['dashboard/groups#index', 'explore/groups#index']) do
= link_to dashboard_groups_path, title: 'Groups' do
= icon('group fw')
%span
......
......@@ -5,7 +5,9 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
include SharedUser
step 'I click on group milestones' do
click_link 'Milestones'
within '.nav-secondary' do
click_link 'Milestones'
end
end
step 'I should see group milestones index page has no milestones' do
......
......@@ -82,7 +82,9 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
# Sub Tabs: Issues
step 'I click the "Milestones" tab' do
click_link('Milestones')
within '.nav-secondary' do
click_link('Milestones')
end
end
step 'I click the "Labels" tab' do
......
......@@ -41,7 +41,7 @@ module SharedProjectTab
end
step 'the active main tab should be Settings' do
page.within '.nav-sidebar' do
page.within '.nav-secondary' do
expect(page).to have_content('Go to project')
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