Makes Poltergeist's click
method aware of the Ember Run Loop.
Add this line to your application's Gemfile:
group :test do
gem 'capybara-ember', require: false
end
And then execute:
$ bundle
Or install it yourself as:
$ gem install capybara-ember
Require capybara/ember
in your test file, for example in rails_helper.rb
or spec_helper.rb
to set up Capybara's Poltergeist driver and make it aware of the Ember Run Loop. This forces Poltergeist to wait with click
until the Ember Run Loop has finished, so that the clicks will be effective.
No modification to your existing tests are necessary.
- Fork it ( https://github.com/[my-github-username]/capybara-ember/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request