X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fspec%2Fmkws-pazpar2.js;h=3433115646fef3542bf21b06bc77eef6d8fb8633;hb=9f5634aae3265dff242615b82419ca15f3dc3d14;hp=de82dfeb0a2383c46ae9563328b23e98fe28b6f2;hpb=b925825a5f4387ba4df8b4c436ad22820b6a5631;p=mkws-moved-to-github.git diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index de82dfe..3433115 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -36,6 +36,7 @@ function init_jasmine_config() { // miliseconds to seconds show_record_url: true, // check for valid URL in records + check_motd: true, dummy: false }; @@ -138,6 +139,10 @@ describe("Check pazpar2 search", function () { describe("Check MOTD after search", function () { it("MOTD is hidden", function () { + if (!jasmine_config.check_motd) { + return; + } + expect($(".mkwsMOTD").length).toBe(1); expect($(".mkwsMOTD").is(":hidden")).toBe(true); debug("motd t=" + $(".mkwsMOTD").text());