Skip to content

Commit

Permalink
[rb] fix tests to get passing
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 28, 2021
1 parent 9f02125 commit 5e91eb5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module PrintsPage

def save_print_page(path, **options)
File.open(path, 'wb') do |file|
content = Base64.decode64 print_page(options)
content = Base64.decode64 print_page(**options)
file << content
end
end
Expand Down
2 changes: 2 additions & 0 deletions rb/spec/integration/selenium/webdriver/chrome/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def get_permission(name)

expect(get_permission('clipboard-read')).to eq('denied')
expect(get_permission('clipboard-write')).to eq('prompt')

reset_driver!
end

it 'can set multiple permissions' do
Expand Down
1 change: 1 addition & 0 deletions rb/spec/integration/selenium/webdriver/edge/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module Edge
'download_throughput' => 789,
'upload_throughput' => 789
)
driver.delete_network_conditions
end

it 'sets download path' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initialize

extract_browser_from_bazel_target_name

@driver = (ENV['WD_SPEC_DRIVER'] || :firefox).to_sym
@driver = (ENV['WD_SPEC_DRIVER'] || :chrome).to_sym
@driver_instance = nil
end

Expand Down

0 comments on commit 5e91eb5

Please sign in to comment.