mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Set js_errors to false in poltergeist driver
This commit is contained in:
parent
9a3451af4f
commit
b4a838bfb2
1 changed files with 6 additions and 0 deletions
|
|
@ -63,6 +63,12 @@ RSpec.configure do |config|
|
|||
|
||||
# poltergeist as a underlying mech for Capybara
|
||||
Capybara.javascript_driver = :poltergeist
|
||||
Capybara.register_driver :poltergeist do |app|
|
||||
options = {
|
||||
:js_errors => true
|
||||
}
|
||||
Capybara::Poltergeist::Driver.new(app, options)
|
||||
end
|
||||
|
||||
# Includes helpers and connect them to specific types of tests
|
||||
config.include FactoryGirl::Syntax::Methods
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue