From: Wolfram Schneider Date: Fri, 7 Mar 2014 16:51:12 +0000 (+0000) Subject: if there are no "good" sources, ignore the source facet check. MKWS-137 X-Git-Tag: 1.0.0~1318^2~21 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=ff0954898bdc7a3bc88c8386e9c51a9d600994f0;p=mkws-moved-to-github.git if there are no "good" sources, ignore the source facet check. MKWS-137 --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index d042366..5074c4e 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -289,6 +289,10 @@ describe("Check Termlist", function () { break; } } + if ($("div.mkwsFacetSources div.term:nth-child(" + source_number + ") a").text().length == 0) { + debug("No good source found. Not clicking on the bad ones"); + return; + } $("div.mkwsFacetSources div.term:nth-child(" + source_number + ") a").trigger("click");