Commit 98831624 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '350312-follow-up-remove-sleep-from-test' into 'master'

Follow up: Remove sleep from labels widget test

See merge request gitlab-org/gitlab!78619
parents f11382ba ef41bb8f
......@@ -54,7 +54,10 @@ RSpec.shared_examples 'labels sidebar widget' do
end
fill_in 'Search', with: 'Devel'
sleep 1
expect(page).to have_css('.labels-fetch-loading')
wait_for_all_requests
expect(page).to have_css('[data-testid="dropdown-content"] .gl-new-dropdown-item')
expect(page.all(:css, '[data-testid="dropdown-content"] .gl-new-dropdown-item').length).to eq(1)
find_field('Search').native.send_keys(:enter)
......
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