diff --git a/spec/features/internal_contacts/users_can_edit_the_assigned_user_with_autocomplete_spec.rb b/spec/features/internal_contacts/users_can_edit_the_assigned_user_with_autocomplete_spec.rb index 774a48544..51c37573a 100644 --- a/spec/features/internal_contacts/users_can_edit_the_assigned_user_with_autocomplete_spec.rb +++ b/spec/features/internal_contacts/users_can_edit_the_assigned_user_with_autocomplete_spec.rb @@ -128,6 +128,9 @@ fill_in "Assign to", with: user.email + # give the autocomplete time to load + sleep(0.5) + within(autocomplete_first_suggestion) do expect(page).to have_content("#{user.first_name} #{user.last_name} (#{user.email})") end @@ -157,6 +160,9 @@ fill_in "Assign to", with: user.email + # give the autocomplete time to load + sleep(0.5) + within(autocomplete_first_suggestion) do expect(page).to have_content("#{user.first_name} #{user.last_name} (#{user.email})") end