From cd98664aa255423195fd3a63d7b738171a25ae28 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 28 Jan 2015 13:45:14 +0000 Subject: [PATCH] check translations, part switch links, MKWS-365 --- test/spec/mkws-pazpar2.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index f0423dd..e24a1bd 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -787,9 +787,19 @@ describe("Check translations", function () { */ it("search button", function () { + var list = $(".mkws-switch > a") + + expect(list.length).toBe(2); + expect($(list[0]).text()).toBe(M("Records")); + expect($(list[1]).text()).toBe(M("Targets")); + }); + + it("switch", function () { + var list = $(".mkws-pager-desc > span"); expect($("form > input[type=submit]").attr("value")).toBe(M("Search")); }); + it("ranking form", function () { var list = $(".mkws-ranking > form > span"); -- 1.7.10.4