describe("Check active clients author", function () {
it("check for active clients after limited author search", function () {
waitsFor(function () {
- var clients = $("div#mkwsStat span.clients");
+ 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");
+ var clients = $("div.mkwsStat span.clients");
debug("span.clients: " + clients.text());
expect(clients.text()).toMatch("/[1-9]+[0-9]+$");
}
waitsFor(function () {
- var clients = $("div#mkwsStat span.clients");
+ var clients = $("div.mkwsStat span.clients");
//debug("clients: " + clients.text());
return clients.length == 1 && clients.text().match("/1$");
}, "wait for Active clients: x/1", 5 * jasmine_config.second);
runs(function () {
- var clients = $("div#mkwsStat span.clients");
+ var clients = $("div.mkwsStat span.clients");
debug("span.clients: " + clients.text());
expect(clients.text()).toMatch("/1$");
});
}
waitsFor(function () {
- var clients = $("div#mkwsStat span.clients");
+ var clients = $("div.mkwsStat span.clients");
debug("clients: " + clients.text());
if (clients.length == 1 && clients.text().match("0/1$")) {
return true;
}, "wait for Active clients: 0/1", 4 * jasmine_config.second);
runs(function () {
- var clients = $("div#mkwsStat span.clients");
+ var clients = $("div.mkwsStat span.clients");
debug("span.clients: " + clients.text());
expect(clients.text()).toMatch("0/1$");
});