spec/druid/elements/element_spec.rb in druid-ts-1.1.6 vs spec/druid/elements/element_spec.rb in druid-ts-1.1.7
- old
+ new
@@ -160,7 +160,13 @@
it "should be able to flash element" do
expect(we).to receive(:flash)
element.flash
end
+
+ it "should scroll into view" do
+ expect(we).to receive(:wd).and_return(we)
+ expect(we).to receive(:location_once_scrolled_into_view)
+ element.scroll_into_view
+ end
end
end