From 8d7f9b7b84ca13d40a6353c34386e5a4aa7d0274 Mon Sep 17 00:00:00 2001 From: Steve Taylor Date: Thu, 12 Dec 2024 14:08:23 -0800 Subject: [PATCH] What can I get away with --- spec/features/autocomplete_typeahead_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/features/autocomplete_typeahead_spec.rb b/spec/features/autocomplete_typeahead_spec.rb index 9b6a11c2b..e52001c5e 100644 --- a/spec/features/autocomplete_typeahead_spec.rb +++ b/spec/features/autocomplete_typeahead_spec.rb @@ -47,13 +47,12 @@ # Open the multi-image selector and choose the last one click_link('Change') - expect(page).to have_css('.thumbs-list li a img', count: 2) find('.thumbs-list li:last-child').click - sleep 2 + sleep 1 expect(page).to have_css('.leaflet-container', visible: true) click_button 'Save changes' - sleep 2 + sleep 1 expect(page).to have_content('The exhibit was successfully updated.')