Skip to content

Commit

Permalink
[ci][rb] Fix remote tests (#14679)
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 authored Oct 30, 2024
1 parent e7c09a2 commit 5be3015
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rb/spec/integration/selenium/webdriver/remote/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ module Remote

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

private
Expand Down

0 comments on commit 5be3015

Please sign in to comment.