Skip to content

Commit 5e91eb5

Browse files
committed
[rb] fix tests to get passing
1 parent 9f02125 commit 5e91eb5

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

rb/lib/selenium/webdriver/common/driver_extensions/prints_page.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module PrintsPage
3434

3535
def save_print_page(path, **options)
3636
File.open(path, 'wb') do |file|
37-
content = Base64.decode64 print_page(options)
37+
content = Base64.decode64 print_page(**options)
3838
file << content
3939
end
4040
end

rb/spec/integration/selenium/webdriver/chrome/driver_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ def get_permission(name)
168168

169169
expect(get_permission('clipboard-read')).to eq('denied')
170170
expect(get_permission('clipboard-write')).to eq('prompt')
171+
172+
reset_driver!
171173
end
172174

173175
it 'can set multiple permissions' do

rb/spec/integration/selenium/webdriver/edge/driver_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module Edge
3131
'download_throughput' => 789,
3232
'upload_throughput' => 789
3333
)
34+
driver.delete_network_conditions
3435
end
3536

3637
it 'sets download path' do

rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize
2929

3030
extract_browser_from_bazel_target_name
3131

32-
@driver = (ENV['WD_SPEC_DRIVER'] || :firefox).to_sym
32+
@driver = (ENV['WD_SPEC_DRIVER'] || :chrome).to_sym
3333
@driver_instance = nil
3434
end
3535

0 commit comments

Comments
 (0)