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
@@ -20,7 +20,7 @@
Loading
@@ -20,7 +20,7 @@
= icon('group fw') = icon('group fw')
%span %span
Groups Groups
= nav_link(controller: :milestones) do = nav_link(path: 'dashboard#milestones') do
= link_to dashboard_milestones_path, title: 'Milestones' do = link_to dashboard_milestones_path, title: 'Milestones' do
= icon('clock-o fw') = icon('clock-o fw')
%span %span
Loading
Loading
Loading
@@ -5,8 +5,8 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
Loading
@@ -5,8 +5,8 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
include SharedUser include SharedUser
   
step 'I click on group milestones' do step 'I click on group milestones' do
within '.nav-secondary' do page.within '.nav-secondary' do
click_link 'Milestones' click_link("Milestones")
end end
end end
   
Loading
Loading
Loading
@@ -82,7 +82,7 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
Loading
@@ -82,7 +82,7 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps
# Sub Tabs: Issues # Sub Tabs: Issues
   
step 'I click the "Milestones" tab' do step 'I click the "Milestones" tab' do
within '.nav-secondary' do page.within '.nav-secondary' do
click_link('Milestones') click_link('Milestones')
end end
end end
Loading
Loading
Loading
@@ -36,7 +36,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
Loading
@@ -36,7 +36,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
end end
   
step 'I goto the Merge Requests page' do step 'I goto the Merge Requests page' do
page.within '.page-sidebar-expanded' do page.within '.nav-secondary' do
click_link "Merge Requests" click_link "Merge Requests"
end end
end end
Loading
Loading
Loading
@@ -114,7 +114,9 @@ class Spinach::Features::Project < Spinach::FeatureSteps
Loading
@@ -114,7 +114,9 @@ class Spinach::Features::Project < Spinach::FeatureSteps
end end
   
step 'I should not see "Snippets" button' do 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 end
   
step 'project "Shop" belongs to group' do 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