ember-cli-page-object icon indicating copy to clipboard operation
ember-cli-page-object copied to clipboard

Document that custom helpers can be used for anything, not just components

Open benshine opened this issue 9 years ago • 3 comments

Currently, the only description of writing custom helpers is in the section on components: http://ember-cli-page-object.js.org/docs/v1.4.x/components#custom-helper

I found out in emberjs slack from @jeradg that "The custom helpers will work in components, page objects, collections, etc."

It would be great if that info were in the actual documentation :)

benshine avatar Jul 05 '16 23:07 benshine

Thanks for the feedback, it's really useful to help us improving the addon.

san650 avatar Jul 06 '16 16:07 san650

@benshine @san650 Time for me to take that Slack wisdom and put it in the repo!

jeradg avatar Aug 01 '16 23:08 jeradg

Note (also from a conversation with @benshine on Slack): We also need documentation that you can add plain JS methods to the page object. In those methods, you can refer to the PO with the this keyword, return this to allow for method chaining, etc.

jeradg avatar Aug 13 '16 02:08 jeradg