use mkwsRecords for Records|Targets testing, not mkwsResults
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index b8e4094..c8b5d15 100644 (file)
@@ -95,7 +95,7 @@ describe("Check pazpar2 navigation", function () {
 describe("Check pazpar2 hit counter", function () {
     it("check running search hit counter", function () {
         var max_time = 16; // in seconds
-        var expected_hits = 116; // at least expected hit counter
+        var expected_hits = 80; // at least expected hit counter
         var hits = 0;
 
         waitsFor(function () {
@@ -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);
     });
 });