-
Notifications
You must be signed in to change notification settings - Fork 141
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
ember-test-helpers' Click() is not waiting for MakeRequest #265
Comments
It may be related to emberjs/ember-test-helpers#339 |
Definitely related to ember-cli/ember-fetch#204 |
@tpetrone Thanks for reporting this! I'm slammed at work right now so it may be a day or two before I can dig in. It looks like you are working on it. Right now, does this appear to be an issue we need to resolve in the library? Thanks. |
Hi @fenichelar!
|
@tpetrone Is this something we should add to the |
@fenichelar I think it would be enough to mention in the docs. I forgot to mention but this is a build option. That piece of code should go in |
Okay, I'll add it to the testing section of the readme: https://github.com/jpadilla/ember-simple-auth-token#testing-configuration. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We are facing a timing issue during an acceptance test that performs a login. Sometimes it works, sometimes it does not.
In our code, clicking a button triggers an action that calls
authenticate()
method and upon resolution, the user gets transitioned to an authenticated route - a pretty common login flow. The application is configured to use jwt authenticator.During the test execution, sometimes it reaches
settled
ness before actually resolving the promise. In other words, beforeauthenticate.then
. Further investigations led me to understand that there is a potencial problem atmakeRequest
method (token.js).The tests do always wait for the completion of
fetch
but it doesn't necessarily wait forresponse.text()
promise.Is this an expected behaviour?
The text was updated successfully, but these errors were encountered: