Skip to content

Commit c5b7acc

Browse files
committed
[rb] try setting no sandbox on Chrome
1 parent efaae63 commit c5b7acc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: .github/workflows/ruby-examples.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ jobs:
9797
cd examples/ruby
9898
bundle exec rspec
9999
new_command_on_retry: |
100-
$env:DEBUG="true"
101-
cd examples/ruby
102-
bundle exec rspec --only-failures
103-
- name: Run tests on Linux/Mac
100+
cd examples/ruby; $env:DEBUG="true"; bundle exec rspec --only-failures
101+
- name: Run tests on ${{ matrix.os }}
104102
if: matrix.os != 'windows'
105103
uses: nick-invision/[email protected]
106104
with:
@@ -110,6 +108,5 @@ jobs:
110108
cd examples/ruby
111109
bundle exec rspec
112110
new_command_on_retry: |
113-
DEBUG="true"
114111
cd examples/ruby
115-
bundle exec rspec --only-failures
112+
DEBUG=true bundle exec rspec --only-failures

Diff for: examples/ruby/spec/spec_helper.rb

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
def start_session
3333
options = Selenium::WebDriver::Chrome::Options.new
3434
options.add_argument('disable-search-engine-choice-screen')
35+
options.add_argument('--no-sandbox')
3536
@driver = Selenium::WebDriver.for(:chrome, options: options)
3637
end
3738

0 commit comments

Comments
 (0)