# Set up basic capybara: require 'capybara/rails' ActionDispatch::IntegrationTest.include(Capybara::DSL) # Set up basic screenshotting capability: require 'capybara-screenshot' if defined?(MiniTest) require 'capybara-screenshot/minitest' ActionDispatch::IntegrationTest.include(Capybara::Screenshot::MiniTestPlugin) else require 'capybara-screenshot/testunit' end # Include our custom DSL extensions, that also cover screenshotting: require 'ndr_dev_support/integration_testing/dsl' # These are all the drivers we have capybara / screenshot support for: require 'ndr_dev_support/integration_testing/drivers/chrome' require 'ndr_dev_support/integration_testing/drivers/chrome_headless' require 'ndr_dev_support/integration_testing/drivers/firefox' require 'ndr_dev_support/integration_testing/drivers/poltergeist' require 'ndr_dev_support/integration_testing/drivers/switchable' Capybara.default_driver = :switchable Capybara.javascript_driver = :switchable