AngularJS 1.0.6 - Karma 8.5 - E2E broken

149 views
Skip to first unread message

thi...@gmail.com

unread,
Apr 23, 2013, 10:53:55 AM4/23/13
to ang...@googlegroups.com
Hi All,

I've been running E2E tests with Angular 1.0.5 and Karma 8.5 with no problems. This morning we updated angularJS to 1.0.6 and now get weird errors.

This is the main error I get:
TypeError: Cannot call method 'invoke' of undefined

This seems to happen when this code is run:

expect(browser().window().href()).toEqual('http://myURL');
element('.btn').click();

This happening to anyone else? Has 1.0.6 broken something in the scenario?

Thank-you in advance

Kailuo Wang

unread,
Apr 23, 2013, 4:22:45 PM4/23/13
to ang...@googlegroups.com
I couldn't get my Angular 1.0.6 Karma 8.5 working either. It seems to me that the karma proxy isn't working at all. Do you mind post your karma.e2e.conf here?
Thanks!

thi...@gmail.com

unread,
Apr 24, 2013, 10:51:04 AM4/24/13
to ang...@googlegroups.com
Here are my e2e config file settings. As mentioned before nothing has changed other than upgrading Angular to 1.0.6... weird

basePath = '';

files = [
ANGULAR_SCENARIO,
ANGULAR_SCENARIO_ADAPTER,
'e2e/**/*.js'
];

proxies = {
};

captureTimeout = 15000;

urlRoot = '/__karma/';
runnerPort = 9100;
autoWatch = false;
browsers = ['Chrome'];
singleRun = true;

Kailuo Wang

unread,
Apr 30, 2013, 9:48:30 AM4/30/13
to ang...@googlegroups.com
Update: after correcting our karma config (we missed the urlRoot), it has been working for us during the last couple of days. 


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/CYUom8nBGXU/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Kai
twitter: @kailuowang
http://kailuowang.com - art photography
http://kaipic.com - commercial photography
http://kailuowang.blogspot.com - software development blog
https://github.com/kailuowang - github
Reply all
Reply to author
Forward
0 new messages