Open skiraikou opened 6 years ago
This might be what I'm looking for to get past the error with Angular about "ERROR TypeError: xhr.addEventListener is not a function"
Will try it out, thx!
something like this in installCypressHooks.js at line 329 inside FakeXMLHttpRequest.prototype?
addEventListener: function(type, callback) { this.object.addEventListener(type, callback); },
removeEventListener: function(type, callback) { this.object.removeEventListener(type, callback); }
installCypressHooks.js 330 add
this['on' + type] = callback;
to make it work in angular app
We were trying to use it in ng6 app test But got error regarding missing addEventListener method
i was able to fix it using