Added test
This commit is contained in:
parent
aa364386d2
commit
27317d55b0
1 changed files with 24 additions and 0 deletions
|
@ -63,4 +63,28 @@ feature 'Project milestone', :feature do
|
|||
expect(page).not_to have_content('Assign some issues to this milestone.')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when project has an issue' do
|
||||
before do
|
||||
create(:issue, project: project, milestone: milestone)
|
||||
|
||||
visit namespace_project_milestone_path(project.namespace, project, milestone)
|
||||
end
|
||||
|
||||
describe 'the collapsed sidebar' do
|
||||
before do
|
||||
find('.milestone-sidebar .gutter-toggle').click
|
||||
end
|
||||
|
||||
it 'shows the total MR and issue counts' do
|
||||
find('.milestone-sidebar .block', match: :first)
|
||||
blocks = all('.milestone-sidebar .block')
|
||||
|
||||
aggregate_failures 'MR and issue blocks' do
|
||||
expect(blocks[3]).to have_content 1
|
||||
expect(blocks[4]).to have_content 0
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue