Skip to content

Releases: san650/ember-cli-page-object

Chappie

03 Dec 13:27
Compare
Choose a tag to compare

Chappie

Image by taymtaym is licensed by CC BY 2.0

Thanks to @kagemusha we now have a new textList helper that returns the text of all elements that match a given selector as a list.

<ul>
  <li>First</li>
  <li>Second</li>
</ul>
const page = PageObject.create({
  list: PageObject.textList('li')
});

page.list() // returns ['First', 'Second']

This release also removes deprecation warnings on blueprints caused by the component function deprecation and updated ember-cli to 1.13.13.

Project Update

npm install --save-dev ember-cli-page-object@0.10.0

Main changes

List of main changes

  • New textList helpers.
  • Remove component deprecation warnings on blueprints.
  • Update ember-cli version.

Community contributions

#78 Removes PageObject.component from the page-object-component blueprint (@Downie)
#81 textList helper (@kagemusha)
#83 Update ember-cli to v1.13.13 (@san650)

AV-98 Ingram

02 Nov 19:45
Compare
Choose a tag to compare

AV-98

Image by Hunini is licensed by CC BY-SA 4.0

This release includes some handy new features.

The new contains predicate is added and can be used from now on.
We are still working on improving the API, and for this release we decided to include some handy predicates and actions on every defined component (isVisible, isHidden, click and others).

We are depecating PageObject.build in favor of PageObject.create, which we believe is clearer.

Finally, we updated our project status indicators.

http://ember-cli-page-object.js.org/

Project Update

npm install --save-dev ember-cli-page-object@0.9.0

Main changes

List of main changes

  • New contains predicate attribute.
  • Components expose handy attributes by default.
  • From now on, we will use create instead of build for creating Page Objects.
  • Better project indicators.

Community contributions

#66 fix typo (thanks to @deepflame)
#67 Add contains predicate (thanks to @marpo60)
#64 Add default behavior to components
#70 Rename build to create
#71 Project indicators

Another nested collections scope bugfix

20 Oct 21:32
Compare
Choose a tag to compare

This release fixes an issue with nested collection items. Thanks to @backspace for the bug report and @HeroicEric for the bug report and fix! See #72 #73 #74

Project Update

npm install --save-dev ember-cli-page-object@0.8.3

Changes

#74 Assign correct scope to sub-collection items (thanks to @HeroicEric)

Nested collections scope bugfix

17 Oct 16:04
Compare
Choose a tag to compare

This release fixes an issue with nested collections. Thanks to @backspace for the bug report (see #68)

Project Update

npm install --save-dev ember-cli-page-object@0.8.2

Changes

#68 Nested collections are not properly scoped
#69 Fix nested collection scope

Collection scope fix

10 Oct 02:35
Compare
Choose a tag to compare

There was a bug in the collection attribute that made components inside item object to not inherit the item's scope #63. This is now fixed.

Now it's possible to do something like:

let page = build({
  users: collection({
    itemScope: '.scope',
    item: {
      data: {
       scope: 'span',
       name: text();
      }
    }
  })
});

Project Update

npm install --save-dev ember-cli-page-object@0.8.1

Changes

#62 Scope bugfixes

Rosie the Robot

27 Sep 20:52
Compare
Choose a tag to compare

This release comes with a variety of fixes and a new website for the addon. Right now, the site content is the same as the README but the idea is to start adding more documentation to it.

http://ember-cli-page-object.js.org/

Starting from this release we're going to work on adding some validations to page objects definitions. For example, the collection helper is 1-based array so some were having strange errors when accessing the index 0. In order to help users we're now throwing an error when accessing the collection at the index 0 (thanks to @bantic).

The idea is to add these kind of validations on other areas, such as throwing errors when some attributes matches more than one item on the DOM (see #175 for more info).

The release also includes a big refactor work that aims to simplify the addition of new features and make the code more understandable so others developers can contribute easily. Thanks to @juanazam for helping on this.

Project Update

npm install --save-dev ember-cli-page-object@0.8.0

Main changes

List of main changes

  • New website!
  • Normalizing &nbsp; characters in text attribute
  • Throw an error when accessing collections at index 0
  • Refactor the code to make it easier to extend in the future

Community contributions

#49 Make full documentation easier to find on README (thanks to @juanazam)
#53 Support Normalizing   characters in Text trim (thanks to @spencer516)
#55 Add homepage link in package.json
#59 Add error message when accessing 0th item (thanks to @bantic)
#60 Silence deprecation warning for Ember.keys (thanks to @mixonic)
#57 Refactor descriptors properties

R.O.T.O.R.

16 Aug 01:24
Compare
Choose a tag to compare

We continue our effort to standardize the way we structure the page objects, components and helpers. Having clear conventions on where to put each file allows us to automate the creation of the files and the creation of more intelligent helpers that know where to look for page objects, components and helpers #23.

Thanks to @juanazam this release includes two new generators, one for creating page-object-components and another for creating page-object-helpers.

Now you can generate a new page object components as follows

$ ember generate page-object-component navbar

installing
  create tests/pages/components/navbar.js

and a page object helpers as follows

$ ember generate page-object-component mouse-hover

installing
  create tests/pages/helpers/mouse-hover.js

Project Update

npm install --save-dev ember-cli-page-object@0.7.0

Main changes

List of main changes

  • page-object-component blueprint
  • page-object-helper blueprint

Community contributions

#35 Generators (@juanazam)
#46 fix example for isHidden (@csantero)
#47 Update to ember cli 1.13.8

Johnny Five

16 Jul 01:43
Compare
Choose a tag to compare

We're starting to generate best practices for the use of page objects and that leads us to start generating blue prints which facilitate the adoption of those. This release includes the first of these blue prints which standardize the /tests/pages folder as the container of all page objects.

Now you can generate a new page object as follows

$ ember generate page-object users

installing
  create tests/pages/users.js

Project Update

npm install --save-dev ember-cli-page-object@0.6.0

Main changes

List of main changes

  • page-object blueprint
  • visitable queryParam support
  • custom helpers now support custom options and custom params

Community contributions

#27 Generate page-object blueprint
#30 Add NPM package metadata
#31 Update ember-cli to 0.2.7
#33 Inherit parent scope for generated count attribute (@irnc)
#34 Add support for custom options and custom params in customHelpers
#37 Move travis-ci build badge to top
#43 Update ember cli to v1.13.1
#42 Improve collection item selector (@acostami)
#40 Provide queryParam support for visitable action (@donovan-graham)

Robby the Robot

25 Jun 23:41
Compare
Choose a tag to compare

This release contains a couple of nice features. New ES7 (2016) async and await keywords are now supported by action attributes. Also a new customHelper attribute was added which simplifies the creation of application specific helpers.

Here's a sneak peek of these features:

var hasError = customHelper(function(selector, options) {
  return function() {
    return $(selector).parent().hasClass('has-error');
  };
});

var page = PageObject.build({
  userName: {
    scope: '#userName',
    value: value(),
    hasError: hasError()
  }
});

test('an example', async function(assert) {
  await page.visit();

  assert.ok(page.userName().hasError(), 'user name has errors');
});

See DOCUMENTATION for more information.

Project Update

npm install --save-dev ember-cli-page-object@0.5.0

Main changes

List of main changes

  • Add customHelper attribute
  • Allow the use of ES7 async / await keyword on actions

Community contributions

#28 Normalize whitespaces in the way browser does it (@irnc)
#26 Implement custom helpers (@juanazam)
#20 Allow Components to act like a promise so async/await works (@drewchandler)

Awesom-O

31 May 16:48
Compare
Choose a tag to compare

Project Update

npm install --save-dev ember-cli-page-object@0.4.0

Main changes

List of main changes

  • Add selectable attribute
  • Support for dynamic segments in visitable attribute

Community contributions

#16 Add selectable helper (@juanazam)
#17 Add support for dynamic segments in visitable urls (@drewchandler)
#18 Update ember-cli to version 0.2.6
#19 Document dynamic segments for visitable attribute