I want to be able to test my Angular application with Protractor. Since I use RequireJS, I cannot use ng-app
directive in my DOM and that is why I bootstrap Angular manually with angular.bootstrap
.
Protractor prints an error output like below:
Error: Angular could not be found on the page
http://localhost:1428/
: retries looking for angular exceeded
Then, I realized that Protractor documentation has a warning:
Protractor does not work out-of-the-box with apps that bootstrap manually using angular.bootstrap. You must use the ng-app directive.
Well, Is there any workaround to run Protractor tests with manually bootstrapped angular application or should I start to learn about alternative testing suites?