Browse Source

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

Rolf Schmidt 3 years ago
parent
commit
9318f2046e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      spec/system/ticket/create_spec.rb

+ 1 - 0
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