From 847940516b73977c2471d830e64a439f2d226685 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 1 Apr 2016 22:35:49 +0200 Subject: Fix some active tab tests that are broken because of 2 level sidebar Signed-off-by: Dmitriy Zaporozhets --- features/steps/group/milestones.rb | 4 +++- features/steps/project/active_tab.rb | 4 +++- features/steps/shared/project_tab.rb | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'features') diff --git a/features/steps/group/milestones.rb b/features/steps/group/milestones.rb index a167d259837..f047669ba3d 100644 --- a/features/steps/group/milestones.rb +++ b/features/steps/group/milestones.rb @@ -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 diff --git a/features/steps/project/active_tab.rb b/features/steps/project/active_tab.rb index 19d81453d8c..b08eb45a452 100644 --- a/features/steps/project/active_tab.rb +++ b/features/steps/project/active_tab.rb @@ -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 diff --git a/features/steps/shared/project_tab.rb b/features/steps/shared/project_tab.rb index 4fc2ece79ff..fa7d24ce611 100644 --- a/features/steps/shared/project_tab.rb +++ b/features/steps/shared/project_tab.rb @@ -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 -- cgit v1.2.1