fixed new milstone button not being visible

This commit is contained in:
Phil Hughes 2017-09-06 16:29:35 +01:00
parent c53d5ceae7
commit 66e8a39b3c
2 changed files with 2 additions and 4 deletions

View file

@ -10,7 +10,7 @@
.nav-controls
= render 'shared/milestones_sort_dropdown'
- if can?(current_user, :admin_milestone, @project)
= link_to new_project_milestone_path(@project), class: "btn btn-new visible-xs", title: 'New milestone' do
= link_to new_project_milestone_path(@project), class: "btn btn-new", title: 'New milestone' do
New milestone
.milestones

View file

@ -62,9 +62,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
step 'I click link "New issue"' do
page.within '.nav-controls' do
page.has_link?('New Issue') ? click_link('New Issue') : click_link('New issue')
end
page.has_link?('New Issue') ? click_link('New Issue') : click_link('New issue')
end
step 'I click "author" dropdown' do