projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f10758e
)
do not click on wikipedia source link - no author or subject facets possible
author
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 16 Sep 2013 09:37:57 +0000
(09:37 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 16 Sep 2013 09:37:57 +0000
(09:37 +0000)
test/spec/mkws-pazpar2.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-pazpar2.js
b/test/spec/mkws-pazpar2.js
index
3296144
..
96df2ab
100644
(file)
--- a/
test/spec/mkws-pazpar2.js
+++ b/
test/spec/mkws-pazpar2.js
@@
-150,9
+150,15
@@
describe("Check Termlist", function () {
it("limit search to first source", function () {
var hits_all_targets = get_hit_counter();
it("limit search to first source", function () {
var hits_all_targets = get_hit_counter();
+ var source_number = 2; // 2=first source
+ var source_name = $("div#mkwsFacetSources div.term:nth-child(" + source_number + ") a").text();
+ // do not click on wikipedia link - no author or subject facets possible
+ if (source_name.match(/wikipedia/i)) {
+ source_number++;
+ }
- var click = $("div#mkwsFacetSources div.term:nth-child(2) a").trigger("click");
- debug("limit source click is success: " + click.length);
+ var click = $("div#mkwsFacetSources div.term:nth-child(" + source_number + ") a").trigger("click");
+ debug("limit source click " + (source_number - 1) + " is success: " + click.length);
expect(click.length).toBe(1);
waitsFor(function () {
expect(click.length).toBe(1);
waitsFor(function () {