From da74028828754e46995c83682fca1e40a12e95c8 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 7 Apr 2014 18:43:36 +0000 Subject: [PATCH] more facet sources fixes --- test/spec/mkws-pazpar2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 67c769c..cdc3a68 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -296,7 +296,7 @@ describe("Check Termlist", function () { var hits_all_targets = get_hit_counter(); var source_number = 2; // 2=first source // do not click on wikipedia link - no author or subject facets possible - var terms = $("div.mkwsFacetSources div.term a"); + var terms = $("div.mkwsFacet[data-mkws-facet='xtargets'] div.term a"); for (var i = 0; i < terms.length; i++) { var term = $(terms[i]).text(); if (term.match(/wikipedia/i)) { @@ -306,12 +306,12 @@ describe("Check Termlist", function () { break; } } - if ($("div.mkwsFacetSources div.term:nth-child(" + source_number + ") a").text().length == 0) { + if ($("div.mkwsFacet[data-mkws-facet='xtargets'] 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"); + $("div.mkwsFacet[data-mkws-facet='xtargets'] div.term:nth-child(" + source_number + ") a").trigger("click"); // wait for a stat response var waitcount = 0; -- 1.7.10.4