Reputation: 2588
I'm trying to load $httpBackend in a Protractor test. The very first thing the documentation says to do is set up an angular.module
in the test. However, I have no reference to angular
inside my tests.
I tried merely console.log
ing angular
. I tried browser.driver.window
and browser.driver.Window
but was unable to get ahold of either. I also tried just require('angular')
in my protractor .spec.js
files.
This stackoverflow question also seems to simply assume access will be there.
I can't find any references to $httpBackend in angular/protractor in github either (except for the one in the unit test).
Running out of ideas about how to go about setting this up.
Upvotes: 1
Views: 635
Reputation: 182
This link angular/protractor in github is to protractor's unit test. U can't inject angular services in protractor because it's end2end test framework.
There you don't inject anything. That's why You don't need even have to have this tests in the same place where your project.
Upvotes: 1