From: Wolfram Schneider Date: Wed, 28 Jan 2015 14:18:34 +0000 (+0000) Subject: check translations, part record details, MKWS-365 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=22accbae1d3cf78ab0de84a99ea7e2dbc8aeb7b2;p=mkws-moved-to-github.git check translations, part record details, MKWS-365 --- 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 () {