ember-cli-browser-navigation-button-test-helper

0.3.0 • Public • Published

ember-cli-browser-navigation-button-test-helper

Build Status

Test helper to simulate browsers back and forward buttons in acceptance tests.

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v12 or above

Installation

ember install ember-cli-browser-navigation-button-test-helper

Usage

This addon exportes three test helpers: setupBrowserNavigationButtons(), backButton() and forwardButton() from ember-cli-browser-navigation-button-test-helper/test-support. setupBrowserNavigationButtons should be called at the very beginning of every acceptance test which should use the later ones. It registers a service to manage history. The other two simulates clicks on browsers back and forward buttons.

There is an usage example in this acceptance test.

Known limitations

Support for old-style acceptance tests (before RFC #232 and #268) was dropped in v0.1.0. You could use v0.0.5 if you need to support them, but this one does not support Ember 3.x.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i ember-cli-browser-navigation-button-test-helper

Weekly Downloads

17,954

Version

0.3.0

License

MIT

Unpacked Size

14.9 kB

Total Files

12

Last publish

Collaborators

  • jelhan