Skip to content

Commit

Permalink
reuse chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Feb 22, 2024
1 parent b7cb796 commit 5a52010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/capybara.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
is_ci = ENV.fetch('IS_CI', false)

Capybara.register_driver :headless do |app|
options = Selenium::WebDriver::Firefox::Options.new
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-gpu')
Expand All @@ -11,7 +11,7 @@

Capybara::Selenium::Driver.new(
app,
browser: :firefox,
browser: :chrome,
options: options
)
end
Expand Down

0 comments on commit 5a52010

Please sign in to comment.