Hello everybody,I'm using angular since about a month now and i'm amazed of it's simplicity.
I have wrote a little application, and i'm trying to write a set of test before extending it.
All unit test worked but when i tried to implement e2e test i have troubles
When i launch my runner.html, the result is
browser navigate to 'test-index.html'
http://localhost:3000/scenarios.js:9:9
TypeError: Cannot call method 'invoke' of undefined
at http://localhost:3000/wizard/lib/js/angular/angular-scenario.js:23869:15
at angularInit (http://localhost:3000/wizard/lib/js/angular/angular-scenario.js:10308:5)
at [object Object].executeAction (http://localhost:3000/wizard/lib/js/angular/angular-scenario.js:23861:3)
at HTMLIFrameElement.<anonymous> (http://localhost:3000/wizard/lib/js/angular/angular-scenario.js:23836:14)
My runner.html look like that
<!doctype html>
<html lang="en">
<head>
<title>End2end Test Runner</title>
<script src="wizard/lib/js/angular/angular-scenario.js" ng-autotest></script>
<script src="scenarios.js"></script>
</head>
<body ng-app="">
</body>
</html>
And my scenario.js is like that
'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Testing my App', function () {
it('trying to launch the application in the test runner', function () {
browser().navigateTo('test-index.html');
});
});
I'am pretty sure i'm doing something wrong but i cannot find what.
Does anyone can help me?
Thank you
Cédric Clavier
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/lZvIkM7AXrsJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.