Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the the provided page-objects helper #43

Open
matthias-k opened this issue Mar 28, 2017 · 3 comments
Open

How to use the the provided page-objects helper #43

matthias-k opened this issue Mar 28, 2017 · 3 comments

Comments

@matthias-k
Copy link

Hi,

We are using page objects for our testing and I noticed that ember-aupac-typehead comes with its own helper to construct page objects for typeahead components. However, I can't figure out how to import this helper in my tests. Could you give me a hint? I guess I have to import something in tests/helpers/start-app.js but nothing I have tried so far worked...

Best,
Matthias

@jackmatt2
Copy link
Member

jackmatt2 commented Apr 3, 2017

Did you try importing via import aupacTypeahead from ember-aupac-typeahead/pages/aupac-typeahead.js? Having said that I can't confirm if the helper is currently working as there are no tests using it. If not, a pull request fixing it and documentation update would be appreciated.

@matthias-k
Copy link
Author

@jackmatt2 I think the error was that I need to import from aupac-typeahead/... (i.e. without ember). I will create a PR once I have figured everything out, there seem to be some other issues with the page object (e.g., it's not using the helpers that the component provides and it doesn't make use of the context scope).

@chrisortman
Copy link

I'm trying to get this working too, I can get it to set the value of the input box, but not display any of the suggestions. (in a component integration test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants