Sha256: a0a14f1a1519bd46fe641e13970def0eddf60d1ccdbb8cb4e0b03b29381661a9

Contents?: true

Size: 919 Bytes

Versions: 3

Compression:

Stored size: 919 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'capybara'
require 'capybara/dsl'
require 'capybara/poltergeist'
require 'axe/cucumber/step_definitions'
require 'rest-client'
require 'rspec'
require 'capybara/rspec'
require 'be_valid_asset'
include BeValidAsset

BeValidAsset::Configuration.display_invalid_content = true


url = ENV['URL']
ban = ENV['EXCLUDE'] || "#crapy-selector"

Capybara.current_driver = :poltergeist
Capybara.default_driver = :poltergeist
Capybara.configure do |config|
  config.run_server = false
  config.javascript_driver = config.default_driver
  config.default_selector = :css
  config.default_max_wait_time = 60
end
Capybara.register_driver :poltergeist do |app|
  options = {
    :js_errors => false,
    :timeout => 180,
    :debug => false
  }
  Capybara::Poltergeist::Driver.new(app, options)
end

Before do
  Capybara.use_default_driver
end

After do
  Capybara.reset_sessions!
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bddfire-3.0.2 scaffold/accessibility/features/support/capybara.rb
bddfire-3.0.1 scaffold/accessibility/features/support/capybara.rb
bddfire-3.0.0 scaffold/accessibility/features/support/capybara.rb