debug("trigger click on id: " + id);
var click = $(id).trigger("click");
- debug("next click is success: " + click.length);
+ debug("next/prev: " + id + " click is success: " + click.length);
expect(click.length).toBe(1);
}, time * 1000);
}
return $("div#mkwsFacetSources").length == 1 ? true : false;
}, "check for facet sources", 2 * 1000);
+
+ // everything displayed?
runs(function () {
var sources = $("div#mkwsFacetSources");
debug("Termlist sources success: " + sources.length);
expect(authors.length).toBe(1);
});
+ waitsFor(function () {
+ return $("div#mkwsFacetAuthors div.term").length >= 2 ? true : false;
+ }, "At least one author link displayed", 2 * 1000);
+
+ runs(function () {
+ expect($("div#mkwsFacetAuthors div.term").length).toBeGreaterThan(1);
+ });
});
it("limit search to first author", function () {