Skip to content

Commit f168acf

Browse files
committed
fix test
1 parent d52f08b commit f168acf

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,17 @@ class BiDi
6969
it 'get windows' do
7070
browser = described_class.new(bidi)
7171
windows = browser.windows
72+
active_window = windows.first
7273

73-
window = windows.first
74-
75-
expect(window).to be_a(Selenium::WebDriver::BiDi::Browser::Window)
76-
expect(window).to have_attributes(
74+
expect(active_window).to be_a(Selenium::WebDriver::BiDi::Browser::Window)
75+
expect(active_window).to have_attributes(
7776
handle: an_instance_of(String),
78-
active: be_in([true, false]),
77+
active: be_falsey,
7978
state: 'normal',
8079
height: an_instance_of(Integer),
8180
width: an_instance_of(Integer)
8281
)
8382
end
84-
85-
it 'checks if a window is active' do
86-
browser = described_class.new(bidi)
87-
expect(browser.windows.first).to be_active
88-
end
8983
end
9084
end
9185
end

0 commit comments

Comments
 (0)