Commit f0c53b2b authored by Pavel Shutsin's avatar Pavel Shutsin

Merge branch '336911-contribution-view-test' into 'master'

Contribution Analytics view test coverage

See merge request gitlab-org/gitlab!81557
parents 4287e70e 88f0d675
......@@ -26,5 +26,20 @@ RSpec.describe 'Groups > Contribution Analytics', :js do
expect(page).to have_content "Contribution analytics for issues, merge requests and push"
end
it 'displays text indicating no pushes, merge requests and issues' do
visit group_path(group)
within('.nav-sidebar') do
find('a', text: 'Analytics').click
within('.sidebar-sub-level-items') do
find('a', text: 'Contribution').click
end
end
expect(page).to have_content "No pushes for the selected time period."
expect(page).to have_content "No merge requests for the selected time period."
expect(page).to have_content "No issues for the selected time period."
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