Skip to content

Commit 2927a8f

Browse files
committed
modify expectations
1 parent 8dc8b5e commit 2927a8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module Selenium
2323
module WebDriver
2424
class BiDi
2525
describe Browser, exclusive: {bidi: true, reason: 'only executed when bidi is enabled'},
26-
only: {browser: %i[chrome edge]} do
26+
only: {browser: %i[chrome edge firefox]} do
2727
after { |example| reset_driver!(example: example) }
2828

2929
let(:bidi) { driver.bidi }
@@ -75,14 +75,14 @@ class BiDi
7575
expect(window).to be_a(Selenium::WebDriver::BiDi::Browser::Window)
7676
expect(window).to have_attributes(
7777
handle: an_instance_of(String),
78-
active: be(true),
78+
active: [true, false].include?(active),
7979
state: 'normal',
8080
height: an_instance_of(Integer),
8181
width: an_instance_of(Integer)
8282
)
8383
end
8484

85-
it 'checks if a window is active' do
85+
it 'checks if a window is active', only: {browser: :chrome} do
8686
browser = described_class.new(bidi)
8787
expect(browser.windows.first).to be_active
8888
end

0 commit comments

Comments
 (0)