Commit ee444bf3 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Fix issuables_counter_spec

parent 0c6b1ad8
......@@ -35,9 +35,9 @@ describe 'Navigation bar counter', feature: true, js: true, caching: true do
end
def expect_counters(issuable_type, count)
dashboard_count = find('li.active span.badge')
dashboard_count = find('li.active')
find('.global-dropdown-toggle').click
nav_count = find(".dashboard-shortcuts-#{issuable_type} span.badge")
nav_count = find(".dashboard-shortcuts-#{issuable_type}")
expect(nav_count).to have_content(count)
expect(dashboard_count).to have_content(count)
......
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