Maintenance: remove unnecessary calls to await_empty_ajax_queue

This commit is contained in:
Mantas 2021-09-06 15:33:26 +03:00 committed by Martin Gruner
parent 5a47caab33
commit ece077a503

View file

@ -949,7 +949,6 @@ RSpec.describe 'Ticket zoom', type: :system do
it 'shows ticket state dropdown options in sorted translated alphabetically order' do
visit "ticket/zoom/#{ticket.id}"
await_empty_ajax_queue
expect(all('select[name=state_id] option').map(&:text)).to eq(%w[geschlossen neu offen])
end
end
@ -961,7 +960,6 @@ RSpec.describe 'Ticket zoom', type: :system do
it 'shows ticket state dropdown options in sorted order' do
visit 'ticket/create'
await_empty_ajax_queue
expect(all('select[name=state_id] option').map(&:text)).to eq ['-', 'geschlossen', 'neu', 'offen', 'warten auf Erinnerung', 'warten auf schliessen']
end
end
@ -1738,8 +1736,6 @@ RSpec.describe 'Ticket zoom', type: :system do
visit "ticket/zoom/#{ticket.id}"
visit "ticket/zoom/#{target_ticket.id}"
await_empty_ajax_queue
ensure_websocket do
visit 'dashboard'
end