Skip to content

Commit 97a1769

Browse files
committed
[rb] add guard to bidi test for running on rbe
1 parent 77adbf2 commit 97a1769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rb/spec/integration/selenium/webdriver/bidi/browsing_context_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class BiDi
7474
expect(handles).not_to include(window2)
7575
end
7676

77-
it 'sets the viewport' do
77+
it 'sets the viewport', except: {rbe: true, reason: 'unknown, returns value of 1 instead of 2.0'} do
7878
browsing_context = described_class.new(bridge)
7979
browsing_context.set_viewport(width: 800, height: 600, device_pixel_ratio: 2.0)
8080
expect(driver.execute_script('return [window.innerWidth, window.innerHeight]')).to eq([800, 600])
@@ -86,7 +86,7 @@ class BiDi
8686

8787
driver.navigate.to url_for('alerts.html')
8888
driver.find_element(id: 'alert').click
89-
wait.until { driver.switch_to.alert }
89+
wait_for_alert
9090
window = driver.window_handles.first
9191
browsing_context.handle_user_prompt(window, accept: true)
9292
wait_for_no_alert

0 commit comments

Comments
 (0)