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.')