OntraCommonReactCapybaraHelpers
A bundle of capybara helper methods to find, interact with, and assert the state of components from ontra-common-react
Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add ontra-common-react-capybara-helpers (--group test)
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install ontra-common-react-capybara-helpers
Usage
Import the helpers in your test, e.g.
# spec/feature_spec_helper.rb
require 'ontra-common-react-capybara-helpers'
Use the helper methods in your tests, e.g.
Development
After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version,
- update the version number in
version.rb - build a new version by running
$ gem build ontra-common-react-capybara-helpers.gemspec - push the new
.gemfile to rubygems.org, e.g:
$ gem push ontra-common-react-capybara-helpers-0.1.0.gem
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ontra-common-react-capybara-helpers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the OntraCommonReactCapybaraHelpers project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.