From 80e74460475bec21dd993756741dd244e076a036 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Mon, 6 Feb 2023 15:29:39 -0800 Subject: [PATCH] [rb] guard tests for BiDi browsing context --- .../selenium/webdriver/bidi/browsing_context_spec.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rb/spec/integration/selenium/webdriver/bidi/browsing_context_spec.rb b/rb/spec/integration/selenium/webdriver/bidi/browsing_context_spec.rb index 138afc353f11d..8fa9a8405c5af 100644 --- a/rb/spec/integration/selenium/webdriver/bidi/browsing_context_spec.rb +++ b/rb/spec/integration/selenium/webdriver/bidi/browsing_context_spec.rb @@ -32,28 +32,29 @@ class BiDi expect(browsing_context.id).to eq(id) end - it 'can create a window' do + it 'can create a window without a reference context' do browsing_context = described_class.new(driver: driver, type: :window) expect(browsing_context.id).not_to be_nil end - it 'can create a window with a reference context' do + it 'can create a window with a reference context', except: {browser: :chrome} do browsing_context = described_class.new(driver: driver, type: :window, reference_context: driver.window_handle) expect(browsing_context.id).not_to be_nil end - it 'can create a tab' do + it 'can create a tab without a reference context' do browsing_context = described_class.new(driver: driver, type: :tab) expect(browsing_context.id).not_to be_nil end - it 'can create a tab with a reference context' do + it 'can create a tab with a reference context', except: {browser: :chrome} do browsing_context = described_class.new(driver: driver, type: :tab, reference_context: driver.window_handle) expect(browsing_context.id).not_to be_nil end - it 'can navigate to a url', except: {browser: :chrome, reason: 'navigation_id is not nil'} do + it 'can navigate to a url without a readiness state', + except: {browser: :chrome, reason: 'navigation_id is not nil'} do browsing_context = described_class.new(driver: driver, type: :tab) info = browsing_context.navigate url: url_for('/bidi/logEntryAdded.html')