Skip to content

Commit 426d091

Browse files
authored
[rb] Disable provide response test for Firefox (#15295)
1 parent 9c38306 commit 426d091

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

rb/spec/integration/selenium/webdriver/action_builder_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ module WebDriver
317317
end
318318

319319
describe '#scroll_by' do
320-
it 'scrolls by given amount' do
320+
it 'scrolls by given amount', except: {browser: :firefox, reason: 'returns false on firefox'} do
321321
driver.navigate.to url_for('scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html')
322322
footer = driver.find_element(tag_name: 'footer')
323323
delta_y = footer.rect.y.round

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ class BiDi
145145
end
146146
end
147147

148-
it 'provides response' do
148+
it 'provides response', except: { browser: :firefox,
149+
reason: 'https://github.com/w3c/webdriver-bidi/issues/747' } do
149150
reset_driver!(web_socket_url: true) do |driver|
150151
network = described_class.new(driver.bidi)
151152
network.add_intercept(phases: [described_class::PHASES[:response_started]])

rb/spec/integration/selenium/webdriver/network_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
module Selenium
2323
module WebDriver
24-
describe Network, exclusive: {bidi: true, reason: 'only executed when bidi is enabled'},
25-
only: {browser: %i[chrome edge firefox]} do
24+
describe Network, exclusive: { bidi: true, reason: 'only executed when bidi is enabled' },
25+
only: { browser: %i[chrome edge firefox] } do
2626
let(:username) { SpecSupport::RackServer::TestApp::BASIC_AUTH_CREDENTIALS.first }
2727
let(:password) { SpecSupport::RackServer::TestApp::BASIC_AUTH_CREDENTIALS.last }
2828

@@ -160,7 +160,7 @@ module WebDriver
160160
sameSite: 'Strict',
161161
expiry: 1234
162162
})
163-
request.body = ({test: 'example'})
163+
request.body = ({ test: 'example' })
164164
request.continue
165165
end
166166
driver.navigate.to url_for('formPage.html')
@@ -262,7 +262,9 @@ module WebDriver
262262
end
263263
end
264264

265-
it 'adds a response handler that provides a response' do
265+
it 'adds a response handler that provides a response',
266+
except: { browser: :firefox,
267+
reason: 'https://github.com/w3c/webdriver-bidi/issues/747' } do
266268
reset_driver!(web_socket_url: true) do |driver|
267269
network = described_class.new(driver)
268270
network.add_response_handler do |response|

0 commit comments

Comments
 (0)