Skip to content

brancusi/ember-cli-page-object

 
 

Repository files navigation

Ember Page Objects

Build Status Latest version

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.

http://ember-cli-page-object.js.org/

What is a Page Object?

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:

Community

Let's work together to improve this addon!

You can find us on the official Slack, join the ember-cli-page-object channel or open an issue on Github to request features, report bugs or just to ask any question.

Installation

$ ember install ember-cli-page-object

Or you can install the NPM package and run the installation script.

$ npm install --save-dev ember-cli-page-object@1.1.0
$ ember generate ember-cli-page-object

When you execute the generator it can ask you for a suitable version of Ceibo library, if there's a conflict then choose ceibo 1.1.0.

$ ember g ember-cli-page-object
version: 2.4.1
installing ember-cli-page-object
  install bower package ceibo
Installing browser packages via Bower...
  cached git://github.com/san650/ceibo.git#1.1.0
  conflict Unable to find suitable version for ceibo
    1) ceibo 1.0.0
    2) ceibo 1.1.0
[?] Answer: 2
Installed browser packages via Bower.

Documentation

Check the site for full documentation.

Blueprints

The addon includes the following blueprints

  • page-object Creates a new page object
  • page-object-component Creates a new component to be used in a page object
  • page-object-helper Creates 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.js

Development

Installation

$ git clone https://github.com/san650/ember-cli-page-object.git
$ cd $_
$ npm install
$ bower install

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Project's health

Build Status Ember Observer Score Dependency Status devDependency Status Codacy Badge Code Climate

Maintainers

  • Santiago Ferreira (@san650)
  • Juan Manuel Azambuja (@juanazam)
  • Jerad Gallinger (@jeradg)

License

ember-cli-page-object is licensed under the MIT license.

See LICENSE for the full license text.

About

Represent the screens of your web app as a series of objects. This ember-cli addon eases the construction of these objects on your acceptance tests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.8%
  • HTML 3.2%