1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

hover and drag_to are fixed with Firefox 52.0.2, geckodriver 0.15 and selenium-webdriver 3.3.0

This commit is contained in:
Thomas Walpole 2017-03-28 15:09:43 -07:00
parent 06aee90b57
commit d900978c54

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
Capybara::SpecHelper.spec "node" do
Capybara::SpecHelper.spec "node", :focus_ do
before do
@session.visit('/with_html')
end
@ -289,7 +289,6 @@ Capybara::SpecHelper.spec "node" do
describe '#drag_to', requires: [:js, :drag] do
it "should drag and drop an object" do
pending "selenium-webdriver/geckodriver doesn't support mouse move_to" if marionette?(@session)
@session.visit('/with_js')
element = @session.find('//div[@id="drag"]')
target = @session.find('//div[@id="drop"]')
@ -300,7 +299,6 @@ Capybara::SpecHelper.spec "node" do
describe '#hover', requires: [:hover] do
it "should allow hovering on an element" do
pending "selenium-webdriver/geckodriver doesn't support mouse move_to" if marionette?(@session)
@session.visit('/with_hover')
expect(@session.find(:css,'.hidden_until_hover', visible: false)).not_to be_visible
@session.find(:css,'.wrapper').hover