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

index 6db773e..3b185cb 100644 (file)
@@ -855,7 +855,15 @@ describe("Check translations", function () {
         expect($(".mkws-prev").text()).toBe(M("Prev"));
     });
 
+    it("record details", function () {
+        var list = $("div.mkws-details table > tbody > tr > th");
+        var text = ["Title", "Date", "Author", "Subject", "Locations"];
 
+        expect(list.length).toBe(text.length);
+        for (var i = 0; i < text.length; i++) {
+            expect($(list[i]).text()).toBe(M(text[i]));
+        }
+    });
 });
 
 xdescribe("Check async widget discovery", function () {