This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 87
Doesn't seem to trigger jQuery Ajax Hooks #28
Comments
Can you please put a breakpoint on Ember Ajax isn't doing anything special to jQuery Ajax that would change default behaviour. If that is setup, it should work. |
Just debug'd that breakpoint - the hooks are being successfully setup - but when I debug here the hook is never fired. This is from a WIP addon - I'll push it up now so I can show an example |
Is the setup function called before your test starts or when |
This should have been addressed with #40, right? |
Yes, @hhff can reopen this if it's still a problem ;) |
Oh sweet - will test on the weekend ❤️ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi Taras!
I'm using
ember-ajax
from inside a component (to post an email to a mailing list).I'm trying to write integration tests for the component, using
wait()
.(The code for wait is here.)
I do something like
However when I call
debugger
inside thewait
function (in the link above) the value ofrequests
is an empty array. I'd assume that meansjQuery(document).on('ajaxSend', incrementAjaxPendingRequests);
andjQuery(document).on('ajaxComplete', decrementAjaxPendingRequests);
aren't being called.Do you have any thoughts / experience here?
The text was updated successfully, but these errors were encountered: