From 2c1020a69e9779e0ec6a1c7d70d2e8d57ea97a5f Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 28 Jan 2015 13:56:43 +0000 Subject: [PATCH] improve logging for translate check --- test/spec/mkws-pazpar2.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index bd60454..6db773e 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -740,9 +740,12 @@ describe("Check SortBy options", function () { describe("Check translations", function () { var $ = mkws.$; + // handle html entities, "Zurück" => "Zurück" var M = function (string) { - return $("").html(mkws.M(string)).text() + var text = $("").html(mkws.M(string)).text() + debug("translate check for: " + text); + return text; }; var lang = function () { return mkws.config.lang @@ -829,7 +832,7 @@ describe("Check translations", function () { expect($(list[2]).text()).toBe(M("Authors")); }); - it("facets navigation", function () { + it("facets navigation/filter", function () { var list = $(".mkws-navi > span"); expect(list.length).toBe(2); -- 1.7.10.4