Commit 31b27ade authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix milestones tab active state and tests

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 84794051
......@@ -20,7 +20,7 @@
= icon('group fw')
%span
Groups
= nav_link(controller: :milestones) do
= nav_link(path: 'dashboard#milestones') do
= link_to dashboard_milestones_path, title: 'Milestones' do
= icon('clock-o fw')
%span
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
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