happybara-pagejs
v1.0.1
Published
Upgrade your Happybara Session with [page.js](https://visionmedia.github.io/page.js/)-powered routing capabilities.
Downloads
2
Readme
happybara-pagejs
Upgrade your Happybara Session with page.js-powered routing capabilities.
Example
import { m } from 'react-drill';
import { assert } from 'chai';
feature('Patients', function(page) {
scenario('I can visit the patients page', async function() {
assert.notOk(page.isTransitioning());
page.transitionTo('/patients');
assert.ok(page.isTransitioning());
await page.pendingTransitions;
assert.notOk(page.isTransitioning());
})
})