Skip to content
Snippets Groups Projects
Verified Commit 31b27ade authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix milestones tab active state and tests

parent 84794051
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment