wait up to 10 seconds for the first next link
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index c8b5d15..25b18e0 100644 (file)
@@ -73,7 +73,7 @@ describe("Check pazpar2 navigation", function () {
 
         waitsFor(function () {
             return $("div#mkwsPager div:nth-child(2) a").length >= 2 ? true : false;
-        }, "Expect next link 2", 5 * 1000);
+        }, "Expect next link 2", 10 * 1000);
 
         runs(function () {
             // click next/prev after N seconds
@@ -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);