mardi 21 février 2017

Protractor fake api calls after ng-click() are never executed

I am using protractor to test an angular application.I am using the mock module to fake API calls.When I get to the home page of my app the calls are executed correctly,but when I go to another html within my app,the htttp GET requests are never executed. beforeEach(function () { browser.addMockModule('httpMocker', function () {

angular.module('httpMocker', ['ngMockE2E']) .run(function ($httpBackend) {

}

The first 2 calls are executed at the home page.The 3rd is after an ng-click event but is never executed.

Aucun commentaire:

Enregistrer un commentaire