disables js fx in specs via poltergeist config

This commit is contained in:
Juanjo Bazán
2016-03-04 11:33:59 +01:00
committed by Juanjo Bazán
parent 2a4adc2e60
commit 4a888e95c2
3 changed files with 5 additions and 6 deletions

View File

@@ -28,7 +28,8 @@ Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app,
inspector: true, # allows remote debugging by executing page.driver.debug
phantomjs_logger: File.open(File::NULL, "w"), # don't print console.log calls in console
phantomjs_options: ['--load-images=no', '--disk-cache=false']
phantomjs_options: ['--load-images=no', '--disk-cache=false'],
extensions: [File.expand_path("../support/phantomjs_ext/disable_js_fx.js", __FILE__)] # disable js effects
)
end