Skip to content

Commit

Permalink
Add some wait to typeahead spec
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Dec 10, 2024
1 parent 2470058 commit 1f2a750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/autocomplete_typeahead_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
expect(page).to have_css('.leaflet-container', visible: true)

click_button 'Save changes'
sleep 1 # Test fails without this after move to Propshaft.
sleep 2 # Test fails without this after move to Propshaft.

featured_image = Spotlight::FeaturedImage.last

Expand All @@ -40,7 +40,7 @@
check 'Show background image in masthead'

fill_in_typeahead_field(with: 'xd327cm9378', type: 'featured-image')
sleep 1 # HACK: that seems to mysteriously work.
sleep 2 # HACK: that seems to mysteriously work.

expect(page).to have_css('[data-panel-image-pagination]', text: /Image 1 of 2/, visible: true)

Expand Down

0 comments on commit 1f2a750

Please sign in to comment.