Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ You can use PhantomJS based Capybara driver Poltergeist driver.

$ bundle exec rake poltergeist

If you wish to disable JS errors you can add **JS_ERRORS=false** to the poltergeist key of cucumber.yml.

###Chrome Driver
You can run your scenarios in Google Chrome

Expand Down
2 changes: 1 addition & 1 deletion scaffold/accessibility/features/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
end
Capybara.register_driver :poltergeist do |app|
options = {
:js_errors => false,
:js_errors => (ENV['JS_ERRORS'] == "true" ? true : false),
:timeout => 180,
:debug => false
}
Expand Down
2 changes: 1 addition & 1 deletion scaffold/features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

Capybara.register_driver :poltergeist do |app|
options = {
js_errors: true,
js_errors: (ENV['JS_ERRORS'] == "false" ? false : true),
timeout: 120,
debug: false,
phantomjs_options: ['--load-images=no', '--disk-cache=false'],
Expand Down