+ it("check for active clients after limited author search", function () {
+ waitsFor(function () {
+ var clients = $("div#mkwsStat span.clients");
+ //debug("clients: " + clients.text());
+ return clients.length == 1 && clients.text().match("/[1-9]+[0-9]+$");
+ }, "wait for Active clients: x/y", 5 * jasmine_config.second);
+
+ runs(function () {
+ var clients = $("div#mkwsStat span.clients");
+ debug("span.clients: " + clients.text());
+ expect(clients.text()).toMatch("/[1-9]+[0-9]+$");
+
+ // exact match of active clients (e.g. a SP misconfiguration)
+ if (jasmine_config.active_clients) {
+ debug("check for " + jasmine_config.active_clients + " active connections");
+ expect(clients.text()).toMatch(" [0-9]+/" + jasmine_config.active_clients + "$");
+ }
+ });
+ });
+});
+
+describe("Check Source Facets", function () {