Skip to content

Commit f9c610c

Browse files
committed
fix STP failures
1 parent f95a18c commit f9c610c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/ruby/spec/browsers/safari_spec.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@
3232
end
3333
end
3434

35-
it 'sets the technology preview',
36-
except: {ci: true, reason: 'GitHub Actions does not support Technology Preview'} do
37-
Selenium::WebDriver::Safari.technology_preview!
38-
local_driver = Selenium::WebDriver.for :safari
39-
expect(local_driver.capabilities.browser_name).to eq 'Safari Technology Preview'
35+
describe 'Technology Preview' do
36+
it 'toggles version',
37+
except: {ci: 'github', reason: 'GitHub Actions does not support Technology Preview'} do
38+
Selenium::WebDriver::Safari.technology_preview!
39+
@driver = Selenium::WebDriver.for :safari
40+
expect(@driver.capabilities.browser_name).to eq 'Safari Technology Preview'
41+
end
4042
end
4143
end
4244

0 commit comments

Comments
 (0)