diff --git a/spec/features/autocomplete_typeahead_spec.rb b/spec/features/autocomplete_typeahead_spec.rb index d96efc09f..f020eb5a3 100644 --- a/spec/features/autocomplete_typeahead_spec.rb +++ b/spec/features/autocomplete_typeahead_spec.rb @@ -46,12 +46,14 @@ # 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 expect(page).to have_css('.leaflet-container', visible: true) - expect(page).to have_css('.leaflet-pane.leaflet-map-pane:not(.leaflet-zoom-anim)') click_button 'Save changes' + expect(page).to have_no_content('You can select and crop an image') expect(page).to have_content('The exhibit was successfully updated.') expect(page).to have_css('[data-panel-image-pagination]', text: /Image 2 of 2/, visible: true)