diff --git a/spec/system/map_spec.rb b/spec/system/map_spec.rb index ecae722..987421a 100644 --- a/spec/system/map_spec.rb +++ b/spec/system/map_spec.rb @@ -785,7 +785,7 @@ def drag_polygon it "deletes the marker from the map" do page.execute_script(revgeo) add_marker - expect(page).to have_css(".leaflet-marker-icon") + expect(page).to have_css(".leaflet-marker-icon", visible: :all) find('div[title="Remove Layers"] a').click find(".leaflet-marker-icon").click expect(page).not_to have_css(".leaflet-marker-icon")