Skip to content

Commit 94b4109

Browse files
committed
rb - update specs with bug information for Edge
1 parent c55700d commit 94b4109

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,16 @@
271271
expect(result).to eq(3)
272272
end
273273

274-
# TODO - File Edge bug; this command returns status 21, should return status 28
275-
it "times out if the callback is not invoked" do
276-
expect {
277-
# Script is expected to be async and explicitly callback, so this should timeout.
278-
driver.execute_async_script "return 1 + 2;"
279-
}.to raise_error(Selenium::WebDriver::Error::ScriptTimeOutError)
274+
# Edge BUG - https://connect.microsoft.com/IE/feedback/details/1849991/
275+
not_compliant_on :browser => :edge do
276+
it "times out if the callback is not invoked" do
277+
expect {
278+
# Script is expected to be async and explicitly callback, so this should timeout.
279+
driver.execute_async_script "return 1 + 2;"
280+
}.to raise_error(Selenium::WebDriver::Error::ScriptTimeOutError)
281+
end
280282
end
281283
end
282284
end
283285

284286
end
285-

rb/spec/integration/selenium/webdriver/mouse_spec.rb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,18 @@ module WebDriver
4747
expect(text).to eq("Dropped!")
4848
end
4949

50-
# TODO - File Edge Bug; double click ends up being a single click to the element
51-
it "double clicks an element" do
52-
driver.navigate.to url_for("javascriptPage.html")
53-
element = driver.find_element(:id, 'doubleClickField')
50+
# Edge BUG - https://connect.microsoft.com/IE/feedback/details/1850023
51+
not_compliant_on :edge do
52+
it "double clicks an element" do
53+
driver.navigate.to url_for("javascriptPage.html")
54+
element = driver.find_element(:id, 'doubleClickField')
5455

55-
driver.mouse.double_click element
56+
driver.mouse.double_click element
5657

57-
wait(5).until {
58-
element.attribute(:value) == 'DoubleClicked'
59-
}
58+
wait(5).until {
59+
element.attribute(:value) == 'DoubleClicked'
60+
}
61+
end
6062
end
6163

6264
not_compliant_on :browser => :phantomjs do

rb/spec/integration/selenium/webdriver/target_locator_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
expect(driver.title).to eq("We Arrive Here")
101101
end
102102

103-
# TODO - File Edge bug; closing 2nd window hangs
103+
# Edge BUG - https://connect.microsoft.com/IE/feedback/details/1850028
104104
not_compliant_on :browser => :edge do
105105
it "should use the original window if the block closes the popup" do
106106
driver.navigate.to url_for("xhtmlTest.html")
@@ -174,7 +174,7 @@
174174
expect(driver.title).to eq("We Arrive Here")
175175
end
176176

177-
# TODO - File Edge bug; closing 2nd window hangs
177+
# Edge BUG - https://connect.microsoft.com/IE/feedback/details/1850028
178178
not_compliant_on :browser => :edge do
179179
it "should switch to a window and execute a block when current window is closed" do
180180
driver.navigate.to url_for("xhtmlTest.html")
@@ -237,7 +237,7 @@
237237
end
238238
end
239239

240-
# TODO - File Edge bug; clicking for alert causes driver to hang
240+
# Edge BUG - https://connect.microsoft.com/IE/feedback/details/1850030
241241
not_compliant_on :browser => [:iphone, :safari, :phantomjs, :edge] do
242242
it "allows the user to set the value of a prompt" do
243243
driver.navigate.to url_for("alerts.html")

0 commit comments

Comments
 (0)