Skip to content

Commit 5be3015

Browse files
authored
[ci][rb] Fix remote tests (#14679)
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent e7c09a2 commit 5be3015

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: rb/spec/integration/selenium/webdriver/remote/driver_spec.rb

+6-4
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ module Remote
8383

8484
it 'errors when not set', {except: {browser: :firefox, reason: 'grid always sets true and firefox returns it'},
8585
exclude: {browser: :safari, reason: 'grid hangs'}} do
86-
expect {
87-
driver.downloadable_files
88-
}.to raise_exception(Error::WebDriverError,
89-
'You must enable downloads in order to work with downloadable files.')
86+
reset_driver!(enable_downloads: false) do |driver|
87+
expect {
88+
driver.downloadable_files
89+
}.to raise_exception(Error::WebDriverError,
90+
'You must enable downloads in order to work with downloadable files.')
91+
end
9092
end
9193

9294
private

0 commit comments

Comments
 (0)