From ef657ef1632080dabd3bbe0b3d3fd372bc0ec6f7 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 13 Dec 2013 15:24:42 +0000 Subject: [PATCH] match the end of 'Active clients' message --- test/spec/mkws-pazpar2.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index cce2bb7..77d9ba3 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -282,19 +282,21 @@ describe("Check status client counter", function () { it("check status clients", function () { waitsFor(function () { var clients = $("div#mkwsStat span.clients"); - if (clients.length == 1 && clients.text() == "0/1") { + if (clients.length == 1 && clients.text().match("0/1$")) { return true; } else { return false; } - }, "wait for status", 4 * 1000); + }, "wait for Active clients: 0/1", 4 * 1000); + /* runs(function () { var clients = $("div#mkwsStat span.clients"); debug("span.clients: " + clients.text()); expect(clients.text()).toEqual("0/1"); }); + */ }); -- 1.7.10.4