Commit d1ecbd6c authored by Felipe Artur's avatar Felipe Artur

Fix admin_labels_spec.rb transient failure

parent 199b17e5
...@@ -35,15 +35,16 @@ RSpec.describe 'admin issues labels' do ...@@ -35,15 +35,16 @@ RSpec.describe 'admin issues labels' do
it 'deletes all labels', js: true do it 'deletes all labels', js: true do
page.within '.labels' do page.within '.labels' do
page.all('.btn-remove').each do |remove| page.all('.btn-remove').each do |remove|
wait_for_ajax
remove.click remove.click
wait_for_ajax
end end
end end
page.within '.manage-labels-list' do wait_for_ajax
expect(page).not_to have_content('bug')
expect(page).not_to have_content('feature_label') expect(page).to have_content("There are no labels yet")
end expect(page).not_to have_content('bug')
expect(page).not_to have_content('feature_label')
end 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