Commit daf2a79b authored by Luke Bennett's avatar Luke Bennett

Add milestone deprecation feature spec

parent e829c39d
...@@ -108,4 +108,18 @@ feature 'Milestone' do ...@@ -108,4 +108,18 @@ feature 'Milestone' do
expect(page).to have_selector('.js-delete-milestone-button', count: 0) expect(page).to have_selector('.js-delete-milestone-button', count: 0)
end end
end end
feature 'deprecation popover', :js do
it 'opens deprecation popover' do
milestone = create(:milestone, project: project)
visit group_milestone_path(group, milestone, title: milestone.title)
expect(page).to have_selector('.milestone-deprecation-message')
find('.milestone-deprecation-message .popover-link').click
expect(page).to have_selector('.milestone-deprecation-message .popover')
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment