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

Integration tests failing because of clickTrigger() #84

Open
pc386 opened this issue Oct 17, 2018 · 0 comments
Open

Integration tests failing because of clickTrigger() #84

pc386 opened this issue Oct 17, 2018 · 0 comments

Comments

@pc386
Copy link

pc386 commented Oct 17, 2018

So, I had ember-power-select 1.10 installed, before I installed ember-power-select-with-create. Everything works fine, but my integration tests stopped working. Every test that uses the clickTrigger() function, doesn't work anymore. Clicking manually still works fine

I get this error in console:

Uncaught (in promise) TypeError: (0 , _testHelpers.click) is not a function
    at _callee4$ (helpers.js:219)
    at tryCatch (runtime.js:63)
    at Generator.invoke [as _invoke] (runtime.js:337)
    at Generator.prototype.(:7357/369/tests/anonymous function) [as next] (http://localhost:7357/assets/vendor.js:5435:21)
    at step (helpers.js:91)
    at helpers.js:109
    at new Promise (<anonymous>)
    at helpers.js:88
    at clickTrigger (helpers.js:230)
    at Object.<anonymous> (assigned-users-card-test.js:82)

My working workaround for now is to import click from ember/test-helpers, and overriding the clickTrigger function. It's a really unpleasant solution though

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

No branches or pull requests

1 participant