Skip to content

Commit 60edfb3

Browse files
raspberry-lefVidas P
authored andcommitted
Accept custom chromium path for testing
1 parent 9cdad77 commit 60edfb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/capybara_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
Capybara.register_driver :chromium_headless do |app|
99
browser_options = Selenium::WebDriver::Chrome::Options.new()
10+
browser_options.binary = ENV['CHROMIUM_PATH'] if ENV.has_key?('CHROMIUM_PATH')
1011
browser_options.args << '--headless'
1112
browser_options.args << '--no-sandbox'
1213
browser_options.args << '--disable-dev-shm-usage'

0 commit comments

Comments
 (0)