v1.9.0
This release adds a new method to the DSL.
Project Update
$ ember install ember-cli-page-object
Main changes
Add as
property to DSL
This new method allows to perform operations on intermediate results within the chain.
It's useful for grouping assertions together.
andThen(() => {
page.users(0).as(user => {
assert.equal(user.name, 'John');
assert.equal(user.lastName, 'Doe');
assert.equal(user.email, 'john@doe');
});
page.users(1).as(user => {
assert.equal(user.name, 'John');
assert.equal(user.lastName, 'Doe');
assert.equal(user.email, 'john@doe');
});
page.users(2).as(user => {
assert.equal(user.name, 'John');
assert.equal(user.lastName, 'Doe');
assert.equal(user.email, 'john@doe');
});
});
Thanks goes to @hidnasio for working on this!
Community contributions
- #252 Update docs generator (@jeradg)
- #277 Add acceptance tests (@hidnasio)
- #278 Generate API documents from properties (@san650)
- #279 Add
as
property to DSL. (@hidnasio) - #283 Make node-test run first in Travis (@hidnasio)
- #281 Update install instructions and test commands (@san650)
- #287 Fix typo in documentation of 'isHidden' property (@YoranBrondsema)
- #285 Fix jsdoc lining errors (@hidnasio)
- #282 Add documentation for
as
property (@hidnasio) - #293 Do not use assert.throws when testing actions in integration tests (@san650)
Happy testing!