Merge pull request #357 from gopesht/fix_flickering_test
Set js_errors to false in poltergeist driver
This commit is contained in:
commit
ade64f339f
1 changed files with 6 additions and 0 deletions
|
|
@ -63,6 +63,12 @@ RSpec.configure do |config|
|
||||||
|
|
||||||
# poltergeist as a underlying mech for Capybara
|
# poltergeist as a underlying mech for Capybara
|
||||||
Capybara.javascript_driver = :poltergeist
|
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
|
# Includes helpers and connect them to specific types of tests
|
||||||
config.include FactoryGirl::Syntax::Methods
|
config.include FactoryGirl::Syntax::Methods
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue