https://github.com/begriffs/capybara-js
Helpers to wait for, spy on, and stub javascript
https://github.com/begriffs/capybara-js
Last synced: 3 days ago
JSON representation
Helpers to wait for, spy on, and stub javascript
- Host: GitHub
- URL: https://github.com/begriffs/capybara-js
- Owner: begriffs
- License: mit
- Created: 2013-09-10T17:28:35.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-10T23:25:36.000Z (almost 13 years ago)
- Last Synced: 2025-11-21T18:15:55.145Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## JavaScript helpers for Capybara
Fix mysterious timing issues in your tests by waiting for JS variables
to be initialized. Spy on JS methods, or stub methods to prevent default
actions and isolate your tests.
### Usage
```sh
gem install capybara-js
```
Or add it to your Gemfile. Then in your rspec,
```ruby
# wait for something to become defined, in this case jQuery
page.js_wait_for_variable '$'
```