Merge pull request #4542 from consul/rack_test_driver_warning

Remove Capybara `default_set_options` for non JS system tests
This commit is contained in:
Javi Martín
2021-06-10 13:44:59 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -47,7 +47,6 @@ end
Capybara.exact = true
Capybara.enable_aria_label = true
Capybara.default_set_options = { clear: :backspace }
Capybara.disable_animation = true
OmniAuth.config.test_mode = true

View File

@@ -54,10 +54,12 @@ RSpec.configure do |config|
config.before(:each, type: :system) do |example|
driven_by :headless_chrome
Capybara.default_set_options = { clear: :backspace }
end
config.before(:each, type: :system, no_js: true) do
driven_by :rack_test
Capybara.default_set_options = {}
end
config.before(:each, type: :system) do