Skip to content

Commit

Permalink
Merge pull request #1957 from DFE-Digital/fix/flaky-autocmplete-spec
Browse files Browse the repository at this point in the history
Fix: attempt to fix flaky autocomplete spec
  • Loading branch information
mec authored Oct 17, 2024
2 parents 37df6c9 + 72d1b55 commit a4e2a00
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a4e2a00

Please sign in to comment.