diff --git a/spec/system/ticket/create_spec.rb b/spec/system/ticket/create_spec.rb index d729e97af..6b00f5e80 100644 --- a/spec/system/ticket/create_spec.rb +++ b/spec/system/ticket/create_spec.rb @@ -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