From: Wolfram Schneider Date: Sat, 12 Apr 2014 16:36:40 +0000 (+0000) Subject: expect at least one hit while waiting for less hits for an limit author search X-Git-Tag: 1.0.0~971 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2e8249272985b89b9d555509d49e209f09098edc;p=mkws-moved-to-github.git expect at least one hit while waiting for less hits for an limit author search --- 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 () {