Thursday, 20 June 2013

KarmaJS AngularJS Scenario Test Runner execution variations in IE 7,8,9 and 10 when using AngularJS

While trying to get Karma JS to work, I found a number of different behaviours for its AngularJS Scenario Test Runner in IE’s multiple 'compatibility modes'.

TLDR: some of the Jasmine and AngularJS test apis don't work (although Angular does seem to work ok)

Here is the default web page I was using:

image

Here is the test executed

image

Here is KarmaJS starting and successfully executing the tests

image

... in this captured IE browser session:

image

Just to confirm that the target page works in the multiple IE configurations, here it is running in:

IE 10 , IE9, IE 8:

image

... and even in IE 7:

image

Now lets click on the DEBUG button to open the KarmaJS's AngularJS Scenario Test Runner view and see what happens in multiple IE compatibility modes.

IE 10 Works:

image

IE 10 Compatibility View

image

IE 9 Fails:

image

IE 8 Works (WTF!!)

image

IE 7 Fails

image

So unfortunately it looks like this technique can't be used to run e2e (end-to-end) tests on AngularJS apps using KarmaJS
Post a Comment