From 2a8a53faae4455be21c329c7a640c9b9bca7d664 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 18 Mar 2014 09:59:02 +0000 Subject: [PATCH] Fix Check status client counter check jasmine run() must be called after waitsFor() --- test/spec/mkws-pazpar2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 8772996..f9dc8ef 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -437,19 +437,19 @@ describe("Check status client counter", function () { it("check status clients", function () { waitsFor(function () { var clients = $("div#mkwsStat span.clients"); + debug("clients: " + clients.text()); if (clients.length == 1 && clients.text().match("0/1$")) { return true; } else { return false; } }, "wait for Active clients: 0/1", 4 * jasmine_config.second); -/* + runs(function () { var clients = $("div#mkwsStat span.clients"); debug("span.clients: " + clients.text()); - expect(clients.text()).toEqual("0/1"); + expect(clients.text()).toMatch("0/1$"); }); - */ }); }); -- 1.7.10.4