From ff0954898bdc7a3bc88c8386e9c51a9d600994f0 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 7 Mar 2014 16:51:12 +0000 Subject: [PATCH] if there are no "good" sources, ignore the source facet check. MKWS-137 --- test/spec/mkws-pazpar2.js | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- 1.7.10.4