Skip to content

attilagyorffy/capybara-ember

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capybara::Ember

Makes Poltergeist's click method aware of the Ember Run Loop.

Installation

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

Usage

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.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/capybara-ember/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Makes Poltergeist Ember Run Loop-aware so your clicks are effective

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages