Commit 73bcfe32 authored by Clement Ho's avatar Clement Ho

Remove sleep from tests

parent 7b16c01d
...@@ -809,7 +809,6 @@ describe 'Filter issues', js: true, feature: true do ...@@ -809,7 +809,6 @@ describe 'Filter issues', js: true, feature: true do
it 'milestone dropdown loads milestones' do it 'milestone dropdown loads milestones' do
input_filtered_search("milestone:", submit: false) input_filtered_search("milestone:", submit: false)
sleep 1
within('#js-dropdown-milestone') do within('#js-dropdown-milestone') do
expect(page).to have_selector('.filter-dropdown .filter-dropdown-item', count: 2) expect(page).to have_selector('.filter-dropdown .filter-dropdown-item', count: 2)
...@@ -818,7 +817,6 @@ describe 'Filter issues', js: true, feature: true do ...@@ -818,7 +817,6 @@ describe 'Filter issues', js: true, feature: true do
it 'label dropdown load labels' do it 'label dropdown load labels' do
input_filtered_search("label:", submit: false) input_filtered_search("label:", submit: false)
sleep 1
within('#js-dropdown-label') do within('#js-dropdown-label') do
expect(page).to have_selector('.filter-dropdown .filter-dropdown-item', count: 5) expect(page).to have_selector('.filter-dropdown .filter-dropdown-item', count: 5)
......
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