Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

Progress bar causing capybara tests to fail #668

Open
brandoncc opened this issue May 14, 2016 · 0 comments
Open

Progress bar causing capybara tests to fail #668

brandoncc opened this issue May 14, 2016 · 0 comments

Comments

@brandoncc
Copy link

After adding this to my application.js:

$(function() {
  Turbolinks.ProgressBar.enable();
});

Most of my capybara specs failed with this javascript error (although the progress bar worked when I ran the app):

 TypeError: 'undefined' is not an object (evaluating 'Turbolinks.ProgressBar.enable')

I was able to fix it by using Turbolinks.enableProgressBar(); instead.

@brandoncc brandoncc changed the title Causing capybara tests to fail Progress bar causing capybara tests to fail May 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant