From 9318f2046e72a6daded87dce86c4807f5320532f Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Fri, 5 Nov 2021 10:22:41 +0000 Subject: [PATCH] Maintenance: Add wait to wait properly for the correct owner list. --- spec/system/ticket/create_spec.rb | 1 + 1 file changed, 1 insertion(+) 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