From: Wolfram Schneider Date: Fri, 25 Apr 2014 15:03:00 +0000 (+0000) Subject: add config option to disable "Check MOTD after search" test X-Git-Tag: 1.0.0~841^2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=9f5634aae3265dff242615b82419ca15f3dc3d14;p=mkws-moved-to-github.git add config option to disable "Check MOTD after search" test --- diff --git a/examples/htdocs/jasmine-local-popup.html b/examples/htdocs/jasmine-local-popup.html index 9e9345e..739b373 100644 --- a/examples/htdocs/jasmine-local-popup.html +++ b/examples/htdocs/jasmine-local-popup.html @@ -51,6 +51,7 @@ search_query: "netbsd", expected_hits: 10, // active_clients: 17, + check_motd: false, show_record_url: true }; @@ -70,6 +71,5 @@ initially on "jsdemo" though now far removed from those beginnnings. [...] -
This is the mkwsMOTD div
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());