Skip to content

Commit a49033c

Browse files
committed
Clean up guards for specs passing against remote
1 parent e9aa80a commit a49033c

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def save_screenshot_and_assert(path)
294294
end
295295

296296
# Edge BUG - https://connect.microsoft.com/IE/feedback/details/1849991/
297-
it 'times out if the callback is not invoked', except: [{browser: :edge}, {driver: :remote, platform: :macosx}] do
297+
it 'times out if the callback is not invoked', except: [{browser: :edge}] do
298298
expect do
299299
# Script is expected to be async and explicitly callback, so this should timeout.
300300
driver.execute_async_script 'return 1 + 2;'

rb/spec/integration/selenium/webdriver/error_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
module Selenium
2323
module WebDriver
24-
# https://github.com/SeleniumHQ/selenium/issues/3338
25-
describe Error, except: {driver: :remote, platform: :macosx} do
24+
describe Error do
2625
it 'should raise an appropriate error' do
2726
driver.navigate.to url_for('xhtmlTest.html')
2827

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

+4-8
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ module WebDriver
177177
expect(driver.title).to eq('We Arrive Here')
178178
end
179179

180-
# https://github.com/SeleniumHQ/selenium/issues/3339
181-
it 'should iterate over open windows when current window is closed', except: {driver: :remote} do
180+
it 'should iterate over open windows when current window is closed' do
182181
driver.navigate.to url_for('xhtmlTest.html')
183182
wait_for_element(link: 'Create a new anonymous window')
184183
driver.find_element(link: 'Create a new anonymous window').click
@@ -199,8 +198,7 @@ module WebDriver
199198
end
200199
end
201200

202-
# https://github.com/SeleniumHQ/selenium/issues/3339
203-
it 'should switch to a window and execute a block when current window is closed', except: [{browser: :safari}, {driver: :remote}] do
201+
it 'should switch to a window and execute a block when current window is closed', except: {browser: :safari} do
204202
driver.navigate.to url_for('xhtmlTest.html')
205203
driver.find_element(link: 'Open new window').click
206204
wait.until { driver.window_handles.size == 2 }
@@ -275,8 +273,7 @@ module WebDriver
275273
wait_for_no_alert
276274
end
277275

278-
# https://github.com/SeleniumHQ/selenium/issues/3340
279-
it 'raises when calling #text on a closed alert', except: {driver: :remote, platform: :macosx} do
276+
it 'raises when calling #text on a closed alert' do
280277
driver.navigate.to url_for('alerts.html')
281278
wait_for_element(id: 'alert')
282279

@@ -289,8 +286,7 @@ module WebDriver
289286
expect { alert.text }.to raise_error(Selenium::WebDriver::Error::NoSuchAlertError)
290287
end
291288

292-
# https://github.com/SeleniumHQ/selenium/issues/3340
293-
it 'raises NoAlertOpenError if no alert is present', except: [{driver: :remote, platform: :macosx}, {browser: :ie}] do
289+
it 'raises NoAlertOpenError if no alert is present', except: {browser: :ie} do
294290
expect { driver.switch_to.alert }.to raise_error(Selenium::WebDriver::Error::NoSuchAlertError, /alert|modal/i)
295291
end
296292

rb/spec/integration/selenium/webdriver/timeout_spec.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ module WebDriver
3737
driver.find_element(id: 'box0')
3838
end
3939

40-
# https://github.com/SeleniumHQ/selenium/issues/3338
41-
it 'should still fail to find an element with implicit waits enabled', except: {driver: :remote, platform: :macosx} do
40+
it 'should still fail to find an element with implicit waits enabled' do
4241
driver.manage.timeouts.implicit_wait = 0.5
4342
expect { driver.find_element(id: 'box0') }.to raise_error(WebDriver::Error::NoSuchElementError)
4443
end
4544

46-
# https://github.com/SeleniumHQ/selenium/issues/3338
47-
it 'should return after first attempt to find one after disabling implicit waits', except: {driver: :remote, platform: :macosx} do
45+
it 'should return after first attempt to find one after disabling implicit waits' do
4846
driver.manage.timeouts.implicit_wait = 3
4947
driver.manage.timeouts.implicit_wait = 0
5048

0 commit comments

Comments
 (0)