Skip to content

v1.10.0

Compare
Choose a tag to compare
@san650 san650 released this 01 May 00:27
· 676 commits to master since this release

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

Happy testing!