compare only the first 3 elements in records details (title, date, author)
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 28 Jan 2015 14:44:14 +0000 (14:44 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 28 Jan 2015 14:44:14 +0000 (14:44 +0000)
test/spec/mkws-pazpar2.js

index 02502e0..e9aa610 100644 (file)
@@ -851,8 +851,11 @@ describe("Check translations", function () {
     });
 
     it("record details", function () {
+        var text = ["Title", "Date", "Author"]; // , "Subject", "Locations"];
         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);
     });