jasmine puts the status message in a different class on failure
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 4 Feb 2014 17:16:44 +0000 (17:16 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 4 Feb 2014 17:16:44 +0000 (17:16 +0000)
test/phantom/evaluate.js

index 8cc4c3e..0cf56f0 100644 (file)
@@ -99,11 +99,13 @@ page.open(url, function (status) {
             if (!window || !window.$ || !window.mkws) {
                 return false;
             } else {
+                var passing = window.$(".passingAlert").text() || window.$(".failingAlert").text();
+
                 return {
                     mkws: window.mkws,
                     html: window.$("html").html(),
                     duration: window.$(".duration").text(),
-                    passing: window.$(".passingAlert").text()
+                    passing: passing
                 };
             }
         })