Open apraditya opened 10 years ago
After seeing your test/ui/angularSpec.js
I created an html file following test/ui/fixtures/angular.html
and added this line after var uit = uitest.current;
uit.url('../uitestjs_runner.html');
However I still get the same error. Thanks
Hi, you need to load Jasmine first, and dont' load scenario, e.g.
files = [
JASMINE,
JASMINE_ADAPTER,
'dist/uitest.js',
'test/ui/**/*Spec.js'
]
First off, I can't find any doc on how to explicitly set this testing library on AngularJS app with Karma. So I blindly set it up from what I understand from the readme. Here's what I put in the karma-e2e.conf.js
As for the rest of the Usage part of the readme, I don't quite get them. So I skip them anyway and straight away to the AngularJS-support and put these lines in my e2e spec:
and I get the error,
Uncaught TypeError: Object #<Object> has no method 'runs'
. Is this due to uitest.js isn't set properly? Step 2 says the following line should be included in the pages that should be testedDoes it mean all of my views or I have to prepend this in
beforeEach
block? Thank you for creating the lib.