QUnit inconsistency/alternately fails tests

QUnit inconsistency/alternately fails tests

I have a simplified QUnit test which consists of 2 simple tests that fails randomly/alternately for no good reason (They are both atomic, meaning that one test doesn't change anything of the other element)

Please see this jsFiddle try to run multiple times

module("Basic actionBind"); //two simple tests test("action1", function() { ok(ele2.trigger("click").hasClass("clicked"), "basic click action"); }); test("action2", function() { ok(ele1.click().hasClass("clicked"), "basic click action"); });



http://stackoverflow.com/questions/16444561/qunit-inconsistency-alternately-fails-tests