check translations, part switch links, MKWS-365
[mkws-moved-to-github.git] / 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");