From 22accbae1d3cf78ab0de84a99ea7e2dbc8aeb7b2 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 28 Jan 2015 14:18:34 +0000 Subject: [PATCH] check translations, part record details, MKWS-365 --- test/spec/mkws-pazpar2.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 6db773e..3b185cb 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -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 () { -- 1.7.10.4