Add milestone deprecation feature spec

This commit is contained in:
Luke Bennett 2018-03-23 19:14:09 +00:00
parent e829c39d51
commit daf2a79b2d
No known key found for this signature in database
GPG Key ID: A738E9C68D3BF31A
1 changed files with 14 additions and 0 deletions

View File

@ -108,4 +108,18 @@ feature 'Milestone' do
expect(page).to have_selector('.js-delete-milestone-button', count: 0)
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