From 1f2a7507c1d1460f679cbaafe74cf87205aada42 Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Tue, 10 Dec 2024 17:09:12 -0500 Subject: [PATCH] Add some wait to typeahead spec --- spec/features/autocomplete_typeahead_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/autocomplete_typeahead_spec.rb b/spec/features/autocomplete_typeahead_spec.rb index 3e23b27f3..3c090c418 100644 --- a/spec/features/autocomplete_typeahead_spec.rb +++ b/spec/features/autocomplete_typeahead_spec.rb @@ -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 @@ -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)