2

Our development site had recently updated to Angular 4.X. As ng-app no longer exists in Angular, it has been removed in angularJS.
Due to this change, there is no more data-ng-app directive in the code base .

Before upgrade The tests are working fine with this code, where ng-App is present

After upgrade Throws error 'Cannot read property $$testability of undefined' as ng-App is not present

From other similar SO posts, a specific rootElement has to be provided in conf file; however, could someone please me know how to deal this situation (as ng-App is NOT available)

torn.ado
  • 21
  • 2
  • Clarification: are you upgrading from AngularJS to Angular? For your Protractor test, what does your configuration look like. What is the error and stack trace? – cnishina May 22 '17 at 21:34
  • @cnishina Please find the below for config and error/stack trace. Config https://pastebin.com/EzNUhaXN / Error/stack trace https://pastebin.com/1H0YaprM – torn.ado May 24 '17 at 11:24
  • Possible duplicate of [Using protractor with ng-upgrade](https://stackoverflow.com/questions/44006259/using-protractor-with-ng-upgrade) – Paul Sweatte Jun 16 '17 at 02:31
  • Closer duplicate of https://stackoverflow.com/questions/43882242/protractor-cannot-read-property-testability-of-undefined – emery Oct 10 '17 at 18:58

0 Answers0