From 2e8249272985b89b9d555509d49e209f09098edc Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Sat, 12 Apr 2014 16:36:40 +0000 Subject: [PATCH] expect at least one hit while waiting for less hits for an limit author search --- test/spec/mkws-pazpar2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index cdc3a68..2e0d898 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -262,7 +262,8 @@ describe("Check Termlist", function () { $("div.mkwsFacet[data-mkws-facet='author'] div.term:nth-child(" + author_number + ") a").trigger("click"); waitsFor(function () { - return get_hit_counter() < hits_all_targets ? true : false; + var hits_single_target = get_hit_counter(); + return hits_single_target > 0 && hits_single_target < hits_all_targets ? true : false; }, "Limited author search for less than " + hits_all_targets + " hits", 6 * jasmine_config.second); runs(function () { -- 1.7.10.4