check translations, part switch links, MKWS-365
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 28 Jan 2015 13:45:14 +0000 (13:45 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 28 Jan 2015 13:45:14 +0000 (13:45 +0000)
test/spec/mkws-pazpar2.js

index f0423dd..e24a1bd 100644 (file)
@@ -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");