Sha256: 444f1f4d9ba13e59d7a808941af775576d15938fa438f9271a0aeca2c6986db9

Contents?: true

Size: 970 Bytes

Versions: 12

Compression:

Stored size: 970 Bytes

Contents

# 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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ndr_dev_support-4.2.1 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-4.2.0 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-4.1.3 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-4.1.2 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-4.1.1 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-4.1.0 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-4.0.0 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-3.1.3 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-3.1.2 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-3.1.1 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-3.1.0 lib/ndr_dev_support/integration_testing.rb
ndr_dev_support-3.0.0 lib/ndr_dev_support/integration_testing.rb