From 56720653bd0af312181229d04fe2cb2db03afd3c Mon Sep 17 00:00:00 2001 From: AndriyAndriyovuch Date: Mon, 4 Sep 2023 10:40:15 +0300 Subject: [PATCH] use firefox instead of chrome --- spec/support/capybara.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 6927149a9..d097a9e69 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -1,6 +1,10 @@ +Capybara.register_driver :firefox do |app| + Capybara::Selenium::Driver.new(app, browser: :firefox) +end + JS_DRIVER = :selenium_chrome_headless -Capybara.default_driver = :rack_test +Capybara.default_driver = :firefox Capybara.javascript_driver = JS_DRIVER Capybara.default_max_wait_time = 2