Skip to content

Commit 80e7446

Browse files
committed
[rb] guard tests for BiDi browsing context
1 parent 7e8d9d2 commit 80e7446

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,29 @@ class BiDi
3232
expect(browsing_context.id).to eq(id)
3333
end
3434

35-
it 'can create a window' do
35+
it 'can create a window without a reference context' do
3636
browsing_context = described_class.new(driver: driver, type: :window)
3737
expect(browsing_context.id).not_to be_nil
3838
end
3939

40-
it 'can create a window with a reference context' do
40+
it 'can create a window with a reference context', except: {browser: :chrome} do
4141
browsing_context = described_class.new(driver: driver, type: :window,
4242
reference_context: driver.window_handle)
4343
expect(browsing_context.id).not_to be_nil
4444
end
4545

46-
it 'can create a tab' do
46+
it 'can create a tab without a reference context' do
4747
browsing_context = described_class.new(driver: driver, type: :tab)
4848
expect(browsing_context.id).not_to be_nil
4949
end
5050

51-
it 'can create a tab with a reference context' do
51+
it 'can create a tab with a reference context', except: {browser: :chrome} do
5252
browsing_context = described_class.new(driver: driver, type: :tab, reference_context: driver.window_handle)
5353
expect(browsing_context.id).not_to be_nil
5454
end
5555

56-
it 'can navigate to a url', except: {browser: :chrome, reason: 'navigation_id is not nil'} do
56+
it 'can navigate to a url without a readiness state',
57+
except: {browser: :chrome, reason: 'navigation_id is not nil'} do
5758
browsing_context = described_class.new(driver: driver, type: :tab)
5859

5960
info = browsing_context.navigate url: url_for('/bidi/logEntryAdded.html')

0 commit comments

Comments
 (0)