From 31b27adeb864ae5f057061b1c208005be181dac4 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 2 Apr 2016 11:26:46 +0200 Subject: Fix milestones tab active state and tests Signed-off-by: Dmitriy Zaporozhets --- features/steps/group/milestones.rb | 4 ++-- features/steps/project/active_tab.rb | 2 +- features/steps/project/fork.rb | 2 +- features/steps/project/project.rb | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) (limited to 'features') diff --git a/features/steps/group/milestones.rb b/features/steps/group/milestones.rb index f047669ba3d..b6ce5bc9cec 100644 --- a/features/steps/group/milestones.rb +++ b/features/steps/group/milestones.rb @@ -5,8 +5,8 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps include SharedUser step 'I click on group milestones' do - within '.nav-secondary' do - click_link 'Milestones' + page.within '.nav-secondary' do + click_link("Milestones") end end diff --git a/features/steps/project/active_tab.rb b/features/steps/project/active_tab.rb index b08eb45a452..4584fc4d754 100644 --- a/features/steps/project/active_tab.rb +++ b/features/steps/project/active_tab.rb @@ -82,7 +82,7 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps # Sub Tabs: Issues step 'I click the "Milestones" tab' do - within '.nav-secondary' do + page.within '.nav-secondary' do click_link('Milestones') end end diff --git a/features/steps/project/fork.rb b/features/steps/project/fork.rb index 527f7853da9..d9b16afa9b8 100644 --- a/features/steps/project/fork.rb +++ b/features/steps/project/fork.rb @@ -36,7 +36,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps end step 'I goto the Merge Requests page' do - page.within '.page-sidebar-expanded' do + page.within '.nav-secondary' do click_link "Merge Requests" end end diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index d24f3cc3065..8f1d4a223a9 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -114,7 +114,9 @@ class Spinach::Features::Project < Spinach::FeatureSteps end step 'I should not see "Snippets" button' do - expect(page).not_to have_link 'Snippets' + page.within '.nav-secondary' do + expect(page).not_to have_link 'Snippets' + end end step 'project "Shop" belongs to group' do -- cgit v1.2.3