ember-cli-browser-navigation-button-test-helper
![Build Status](https://travis-ci.org/jelhan/ember-cli-browser-navigation-button-test-helpers.svg?branch=master)
Test helper to simulate browsers back and forward buttons in acceptance tests.
Installation
ember install ember-cli-browser-navigation-button-test-helper
- Add
import registerBrowserNavigationButtons from './browser-navigation-buttons';
and a call of registerBrowserNavigationButtons();
before application.injectTestHelpers();
in tests/helpers/start-app.js
. - Add
backButton
, forwardButton
and setupBrowserNavigationButtons
as predef in tests/.jshintrc
or as globals in tests/.eslintrc
.
Quickstart
- Call
setupBrowserNavigationButtons();
at the start of your acceptance test. - Simulate back button clicks by
backButton();
. - Simpute forward button clicks by
forwardButton();
.
There is an usage example in this acceptance test.
For more information on using ember-cli, visit http://ember-cli.com/.