uitest.js is able to load a webpage into a frame, instrument that page and the javascript in that page (e.g. add additional scripts at the end of the document, ...) and execute actions on that page.
I'm trying to set up e2e backend tests with angular mocks and passThrough() like in this fiddle:
http://jsfiddle.net/vojtajina/DQHdk/
there seems to be something wrong with my initialization code in the testSpec.js as #passThrough() is not a valid function in this context.
uit.append(function(angular) {
var mod = angular.module("ng");
mod.config(function($provide) {
$provide.decorator('$http', ['$delegate', '$httpBackend', function($http, $httpBackend) {
$httpBackend.whenGET().passThrough();
return $http;
}]);
});
});
I'm trying to set up e2e backend tests with angular mocks and passThrough() like in this fiddle: http://jsfiddle.net/vojtajina/DQHdk/ there seems to be something wrong with my initialization code in the testSpec.js as #passThrough() is not a valid function in this context.
thx Andreas