Add milestone deprecation feature spec
This commit is contained in:
parent
e829c39d51
commit
daf2a79b2d
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue