Skip to content

Commit f6b4128

Browse files
committed
[rb] add guards to tests
1 parent 346d6ec commit f6b4128

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ module WebDriver
172172
.pointer_down(:left).pointer_up(:left)
173173
.perform
174174
expect(element.attribute(:value)).to eq('DoubleClicked')
175+
ensure
176+
# https://issues.chromium.org/issues/400087471
177+
reset_driver! if GlobalTestEnv.browser == :chrome && GlobalTestEnv.rbe?
175178
end
176179
end
177180

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)