Mocking API with httpBackend [Protractor]
问题 I'm developing a frontend app for a REST API. I'm using Protractor for end-to-end tests with the API mocked out. I was able to mock AUTHtoken API response and navigate to chosen URL, but page displayed under destined URL renders empty. Here's my code: describe('e2e tests', function() { it('FO tests', function() { browser.addMockModule('WebClientApp', function() { console.log('test'); angular.module('WebClientApp', ['ngMockE2E']) .run(function($httpBackend) { console.log('test2'); $httpBackend