Skip to content

Commit bea296f

Browse files
committed
WIP - mostly worked, how about now...
1 parent 79fad8f commit bea296f

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

rb/spec/integration/selenium/webdriver/action_builder_spec.rb

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@
2121

2222
module Selenium
2323
module WebDriver
24-
describe ActionBuilder, exclusive: { bidi: false, reason: 'Not yet implemented with BiDi' } do
25-
after do
26-
if GlobalTestEnv.rbe? && GlobalTestEnv.browser == :chrome
27-
reset_driver!
28-
else
29-
driver.action.clear_all_actions
30-
end
31-
end
24+
describe ActionBuilder, exclusive: {bidi: false, reason: 'Not yet implemented with BiDi'} do
25+
after { driver.action.clear_all_actions }
3226

3327
describe '#send_keys' do
3428
it 'sends keys to the active element', except: {browser: %i[safari safari_preview]} do
@@ -161,6 +155,9 @@ module WebDriver
161155
end
162156

163157
describe '#double_click' do
158+
# https://issues.chromium.org/issues/400087471
159+
before { reset_driver! if GlobalTestEnv.rbe? && GlobalTestEnv.browser == :chrome }
160+
164161
it 'presses pointer twice', except: {browser: %i[safari safari_preview]} do
165162
driver.navigate.to url_for('javascriptPage.html')
166163
element = driver.find_element(id: 'doubleClickField')

rb/spec/integration/selenium/webdriver/manager_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ module WebDriver
2525
describe 'cookie management' do
2626
before { driver.navigate.to url_for('xhtmlTest.html') }
2727

28-
after { driver.manage.delete_all_cookies }
28+
after do
29+
if GlobalTestEnv.rbe? && GlobalTestEnv.browser == :chrome
30+
# https://issues.chromium.org/issues/400087471
31+
reset_driver!
32+
else
33+
driver.manage.delete_all_cookies
34+
end
35+
end
2936

3037
it 'sets correct defaults' do
3138
driver.manage.add_cookie name: 'default',

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ module WebDriver
8989
expect {
9090
driver.switch_to.new_window(:unknown)
9191
}.to raise_error(ArgumentError)
92+
ensure
93+
# https://issues.chromium.org/issues/400087471
94+
reset_driver! if GlobalTestEnv.browser == :chrome && GlobalTestEnv.rbe?
9295
end
9396

9497
it 'switches to the new window then close it when given a block' do

0 commit comments

Comments
 (0)