diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-06 16:29:35 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-06 16:29:35 +0100 |
commit | 66e8a39b3c8497171f7855f9dacc2702149ed15c (patch) | |
tree | 953fd57be06b3c0538ead8e76e965284f916d22b | |
parent | c53d5ceae7f5211d1407dcc67aa99e8608eda2d3 (diff) | |
download | gitlab-ce-66e8a39b3c8497171f7855f9dacc2702149ed15c.tar.gz |
fixed new milstone button not being visible
-rw-r--r-- | app/views/projects/milestones/index.html.haml | 2 | ||||
-rw-r--r-- | features/steps/project/issues/issues.rb | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/app/views/projects/milestones/index.html.haml b/app/views/projects/milestones/index.html.haml index c72da2deb3e..f3abecdd302 100644 --- a/app/views/projects/milestones/index.html.haml +++ b/app/views/projects/milestones/index.html.haml @@ -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 diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb index fab96f22739..ceffc7a757d 100644 --- a/features/steps/project/issues/issues.rb +++ b/features/steps/project/issues/issues.rb @@ -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 |