Represent the screens of your web app as a series of objects. This ember-cli addon eases the construction of these objects for your acceptance and integration tests.
https://ember-cli-page-object.js.org/
An excerpt from the Selenium Wiki
Within your web app's UI there are areas that your tests interact with. A Page Object simply models these as objects within the test code. This reduces the amount of duplicated code and means that if the UI changes, the fix need only be applied in one place.
The pattern was first introduced by the Selenium
You can find more information about this design pattern here:
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v12 or above
Let's work together to improve this addon!
You can find us on the official Ember Discord server, or open an issue on Github to request features, report bugs or just to ask any question.
$ ember install ember-cli-page-objectOr you can install the NPM package directly.
$ npm install --save-dev ember-cli-page-objectCheck the site for full documentation.
The addon includes the following blueprints
- page-objectCreates a new page object
- page-object-componentCreates a new component to be used in a page object
- page-object-helperCreates a new helper to be used in a page object
You can create a new page object called users using the generate command
$ ember generate page-object users
installing
  create tests/pages/users.jsSee the Contributing guide for details.
- Santiago Ferreira (gh:san650)
- Juan Manuel Azambuja (@juanazam)
- Jerad Gallinger (@jeradg)
- Anna Andresian (@magistrula)
- Ruslan Grabovoy (@ro0gr)
ember-cli-page-object is licensed under the MIT license.
See LICENSE for the full license text.