Commit b2273415 authored by Mike Greiling's avatar Mike Greiling

fix race condition when loading labels in filter bar

parent 6d0045d2
......@@ -68,7 +68,7 @@ describe 'Dropdown label', :js do
it 'shows loading indicator when opened and hides it when loaded' do
filtered_search.set('label:')
expect(find(js_dropdown_label)).to have_css('.filter-dropdown-loading')
expect(page).to have_css("#{js_dropdown_label} .filter-dropdown-loading", visible: true)
expect(find(js_dropdown_label)).not_to have_css('.filter-dropdown-loading')
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