Maintenance: Add wait to wait properly for the correct owner list.

This commit is contained in:
Rolf Schmidt 2021-11-05 10:22:41 +00:00
parent 2b94843bb7
commit 9318f2046e

View file

@ -829,6 +829,7 @@ RSpec.describe 'Ticket Create', type: :system do
end
it 'does show an empty list of owners' do
wait(5).until { page.all('select[name=owner_id] option').count == 1 }
expect(page.all('select[name=owner_id] option').count).to eq(1)
end
end