spec/element_spec.rb in watir-6.8.4 vs spec/element_spec.rb in watir-6.9.0

- old
+ new

@@ -90,16 +90,17 @@ end end describe "#hover" do - not_compliant_on :internet_explorer, :safari, %i(remote firefox) do + not_compliant_on :internet_explorer, :safari do it "should hover over the element" do browser.goto WatirSpec.url_for('hover.html') link = browser.a expect(link.style("font-size")).to eq "10px" link.hover + link.wait_until { |l| l.style("font-size") == "20px" } expect(link.style("font-size")).to eq "20px" end end end