v1.10.0
This release adds a couple of new features and also fixes an issue with collections' scope.
Project Update
$ ember install ember-cli-page-object
Main changes
Add alias
macro
Now you can use alias
macro in your page objects to reference to other properties.
import { create } from 'ember-cli-page-object';
import { alias } from 'ember-cli-page-object/macros';
const page = create({
submitButton: {
scope: '.submit-button'
}
submit: alias('submitButton.click')
});
page.submit(); // calls `page.submitButton.click`
Thanks goes to @magistrula for implementing the feature
fillable
gains support for content editable elements
Now you can fill content editable elements using the fillable
property out of the box.
<div contenteditable="true" id="bio"></div>
import { create, fillable } from 'ember-cli-page-object';
const page = create({
fillBio: fillable('#bio')
});
page.fillBio('Lorem ipsum dolor');
Thanks goes to @magistrula for implementing the feature
Community contributions
- #298 Copy testContainer configuration to collection's items (@san650)
- #296 Add alias helper (@magistrula)
- #302 Fix travis tests (@san650)
- #301 Add fillable support for contenteditable elements (@magistrula)
- #303 Use throwBetterError in alias helper (@magistrula)
- #305 Export macros (@san650)
Happy testing!