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

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-04-01 22:35:49 +02:00
parent 4a8bd9faaf
commit 847940516b
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
4 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -5,8 +5,10 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
include SharedUser
step 'I click on group milestones' do
within '.nav-secondary' do
click_link 'Milestones'
end
end
step 'I should see group milestones index page has no milestones' do
expect(page).to have_content('No milestones to show')

View file

@ -82,8 +82,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
# Sub Tabs: Issues
step 'I click the "Milestones" tab' do
within '.nav-secondary' do
click_link('Milestones')
end
end
step 'I click the "Labels" tab' do
click_link('Labels')

View file

@ -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