Skip to content

Commit 654d21f

Browse files
aguspetitusfortner
authored andcommitted
Add guards to required tests
1 parent 46e8e3f commit 654d21f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ class BiDi
7474
expect(handles).not_to include(window2)
7575
end
7676

77-
it 'sets the viewport' do
77+
it 'sets the viewport', except: {driver: :remote, reason: 'The viewport is not updated on remote'} 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])
8181
expect(driver.execute_script('return window.devicePixelRatio')).to eq(2.0)
8282
end
8383

84-
it 'accepts users prompts without text' do
84+
it 'accepts users prompts without text', except: {browser: %i[chrome edge],
85+
reason: 'The alerts disappear too quickly'} do
8586
browsing_context = described_class.new(bridge)
8687

8788
driver.navigate.to url_for('alerts.html')
@@ -94,7 +95,8 @@ class BiDi
9495
expect(driver.title).to eq('Testing Alerts')
9596
end
9697

97-
it 'accepts users prompts with text' do
98+
it 'accepts users prompts with text', except: {browser: %i[chrome edge],
99+
reason: 'The alerts disappear too quickly'} do
98100
browsing_context = described_class.new(bridge)
99101
driver.navigate.to url_for('alerts.html')
100102
driver.find_element(id: 'prompt').click
@@ -106,7 +108,8 @@ class BiDi
106108
expect(driver.title).to eq('Testing Alerts')
107109
end
108110

109-
it 'rejects users prompts' do
111+
it 'rejects users prompts', except: {browser: %i[chrome edge],
112+
reason: 'The alerts disappear too quickly'} do
110113
browsing_context = described_class.new(bridge)
111114
driver.navigate.to url_for('alerts.html')
112115
driver.find_element(id: 'alert').click

0 commit comments

Comments
 (0)