Skip to content

keep on rolling

Compare
Choose a tag to compare
@san650 san650 released this 24 Nov 01:22
· 752 commits to master since this release

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

Happy testing!