compare only the first 3 elements in records details (title, date, author)
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index 02502e0..e9aa610 100644 (file)
@@ -851,8 +851,11 @@ describe("Check translations", function () {
     });
 
     it("record details", function () {
     });
 
     it("record details", function () {
+        var text = ["Title", "Date", "Author"]; // , "Subject", "Locations"];
         var list = $("div.mkws-details table > tbody > tr > th");
         var list = $("div.mkws-details table > tbody > tr > th");
-        var text = ["Title", "Date", "Author", "Subject", "Locations"];
+
+        // compare only the first 3 elements
+        list = list.splice(0, text.length)
 
         check_translation(list, text);
     });
 
         check_translation(list, text);
     });