Skip to content

Commit

Permalink
[rb] guard bidi tests on Chrome due to Google bug
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 1, 2024
1 parent 0890949 commit c284a95
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rb/spec/integration/selenium/webdriver/bidi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module WebDriver
# do nothing
end

it 'gets session status' do
it 'gets session status', except: {browser: %i[chrome edge],
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4676'} do
status = driver.bidi.session.status
expect(status).to respond_to(:ready)
expect(status.message).not_to be_empty
Expand Down Expand Up @@ -60,7 +61,9 @@ module WebDriver
)
end

it 'does not close BiDi session if at least one window is opened' do
it 'does not close BiDi session if at least one window is opened',
except: {browser: %i[chrome edge],
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4676'} do
status = driver.bidi.session.status
expect(status.ready).to be false
expect(status.message).to be_a String
Expand All @@ -76,7 +79,9 @@ module WebDriver
expect(status_after_closing.message).to be_a String
end

it 'closes BiDi session if last window is closed' do
it 'closes BiDi session if last window is closed',
except: {browser: %i[chrome edge],
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4676'} do
status = driver.bidi.session.status
expect(status.ready).to be false
expect(status.message).to be_a String
Expand Down

0 comments on commit c284a95

Please sign in to comment.