Skip to content

wrozka/capybara-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bce13cc · Jan 10, 2023

History

70 Commits
Jan 10, 2023
Dec 16, 2022
Dec 16, 2022
Jan 10, 2023
Dec 16, 2022
Jan 10, 2023
Jan 10, 2023
Jan 21, 2017
Jul 8, 2013
Jul 8, 2013
Jul 4, 2017
Jul 8, 2013
Jan 10, 2023

Repository files navigation

Capybara::Angular

Build Status Gem Version

Capybara API that knows how to wait for Angular in end to end specs.

Installation

Add this line to your application's Gemfile:

gem 'capybara-angular'

Usage

Use it as you would use regular Capybara API, however this time, you won't face any race conditions when working with AngularJS applications.

include Capybara::Angular::DSL

If you need to run some code without caring about AngularJS, you can use ignoring_angular like this:

ignoring_angular do
  # Your AngularJS agnostic code goes here
end

Limitations

At the moment it works with AngularJS applications initialized with ng-app.

Contributing

  1. Fork it
  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 new Pull Request