off-by-one error in hit count check
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index e7138bd..8df666f 100644 (file)
@@ -101,7 +101,7 @@ describe("Check pazpar2 hit counter", function () {
         waitsFor(function () {
             hits = get_hit_counter();
 
-            return hits >= expected_hits;
+            return hits > expected_hits;
         }, "Expect " + expected_hits + " hits", max_time * 1000);
 
 
@@ -216,7 +216,7 @@ describe("Check switch menu Records/Targets", function () {
 
         // now the target table must be visible
         expect($("div#mkwsBytarget").is(":visible")).toBe(true);
-        expect($("div#mkwsResults").is(":visible")).toBe(false);
+        expect($("div#mkwsRecords").is(":visible")).toBe(false);
 
         // wait a half second, to show the target view
         var time = (new Date).getTime();
@@ -236,7 +236,7 @@ describe("Check switch menu Records/Targets", function () {
 
         // now the target table must be visible
         expect($("div#mkwsBytarget").is(":visible")).toBe(false);
-        expect($("div#mkwsResults").is(":visible")).toBe(true);
+        expect($("div#mkwsRecords").is(":visible")).toBe(true);
     });
 });