diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-08 20:35:35 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-08 20:35:35 +0300 |
commit | 18042714e8e5241d03980abc71ba26bef8535a9c (patch) | |
tree | 6a5f8d4ea9ba5a343f7b8093c845b9f90e9e1f3f /spec/features | |
parent | adc5aabc2064dc1e187f463f8ebde730502402af (diff) | |
parent | 117ccb8926093ab97ea47e3216370112b2aafce1 (diff) |
Merge branch 'jivl-fix-delete-milestone-button-showing-up' into 'master'
Fix delete milestone button showing up for all users
Closes #43778
See merge request gitlab-org/gitlab-ce!17576
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/milestone_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/milestone_spec.rb b/spec/features/milestone_spec.rb index cc12a1005ba..19152bf1f0f 100644 --- a/spec/features/milestone_spec.rb +++ b/spec/features/milestone_spec.rb @@ -97,4 +97,15 @@ feature 'Milestone' do end end end + + feature 'Deleting a milestone' do + scenario "The delete milestone button does not show for unauthorized users" do + create(:milestone, project: project, title: 8.7) + sign_out(user) + + visit group_milestones_path(group) + + expect(page).to have_selector('.js-delete-milestone-button', count: 0) + end + end end |