https://github.com/begriffs/capybara-js
Helpers to wait for, spy on, and stub javascript
https://github.com/begriffs/capybara-js
Last synced: 4 months 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 (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-10T23:25:36.000Z (over 12 years ago)
- Last Synced: 2025-02-28T03:27:27.070Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 4
- 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 '$'
```