Skip to content

Commit cdc4301

Browse files
committed
[rb] remove firefox guards on shadow dom locator tests
1 parent c7d622d commit cdc4301

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

rb/spec/integration/selenium/webdriver/shadow_root_spec.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,15 @@ module WebDriver
4343
expect(execute_shadow_root).to eq shadow_root
4444
end
4545

46-
describe '#find_element', except: {browser: :firefox,
47-
reason: 'https://github.com/mozilla/geckodriver/issues/2005'} do
46+
describe '#find_element' do
4847
it 'by css' do
4948
shadow_root = custom_element.shadow_root
5049
element = shadow_root.find_element(css: 'input')
5150

5251
expect(element).to be_a Element
5352
end
5453

55-
it 'by xpath', except: {browser: %i[chrome edge],
54+
it 'by xpath', except: {browser: %i[chrome edge firefox],
5655
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4097'} do
5756
shadow_root = custom_element.shadow_root
5857
element = shadow_root.find_element(xpath: "//input[type='checkbox']")
@@ -74,7 +73,7 @@ module WebDriver
7473
expect(element).to be_a Element
7574
end
7675

77-
it 'by tag name', except: {browser: %i[chrome edge],
76+
it 'by tag name', except: {browser: %i[chrome edge firefox],
7877
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4097'} do
7978
shadow_root = custom_element.shadow_root
8079
element = shadow_root.find_element(tag_name: 'input')
@@ -89,8 +88,7 @@ module WebDriver
8988
end
9089
end
9190

92-
describe '#find_elements', except: {browser: :firefox,
93-
reason: 'https://github.com/mozilla/geckodriver/issues/2005'} do
91+
describe '#find_elements' do
9492
it 'by css' do
9593
shadow_root = custom_element.shadow_root
9694
elements = shadow_root.find_elements(css: 'input')
@@ -99,7 +97,7 @@ module WebDriver
9997
expect(elements.first).to be_a Element
10098
end
10199

102-
it 'by xpath', except: {browser: %i[chrome edge],
100+
it 'by xpath', except: {browser: %i[chrome edge firefox],
103101
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4097'} do
104102
shadow_root = custom_element.shadow_root
105103
elements = shadow_root.find_elements(xpath: "//input[type='checkbox']")
@@ -124,7 +122,7 @@ module WebDriver
124122
expect(elements.first).to be_a Element
125123
end
126124

127-
it 'by tag name', except: {browser: %i[chrome edge],
125+
it 'by tag name', except: {browser: %i[chrome edge firefox],
128126
reason: 'https://bugs.chromium.org/p/chromedriver/issues/detail?id=4097'} do
129127
shadow_root = custom_element.shadow_root
130128
elements = shadow_root.find_elements(tag_name: 'input')

0 commit comments

Comments
 (0)