keep on rolling
This release brings some nice features and bug fixes, you should update.
Project Update
$ ember install ember-cli-page-object
$ npm install --save-dev [email protected]
Main changes
Add forEach
support to collection properties
This version adds a new forEach
iterator function to collection properties
let page = create({
items: collection({
itemScope: 'li',
item: {
text: text()
}
})
});
page.items().forEach((item) => {
console.log(item.text);
});
Thanks to @renpinto
Configure testContainer
at component level
Now it's easier to configure several properties to look values in a different test container.
let page = create({
modal: {
testContainer: '#modal',
title: text('h1'),
body: text('p')
}
});
assert.equal(page.modal.title, 'Success');
assert.equal(page.modal.text, 'Lorem ipsum dolor...');
Thanks to @juanazam
Community contributions
- #265 Fix tests with newer versions of ember (and jQuery 2.x) (@san650)
- #263 add 'foreach' to arrayDelegateMethods (@renpinto)
- #254 Allow testContainer to be specified at component level (@juanazam)
- #255 Add fullScope helper (@juanazam)
- #267 Remove invalid blueprint files (@san650)
- #268 Point to github in release notes (@san650)
- #269 Update [email protected] (@san650)
Happy testing!