From 9f5634aae3265dff242615b82419ca15f3dc3d14 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 25 Apr 2014 15:03:00 +0000 Subject: [PATCH] add config option to disable "Check MOTD after search" test --- examples/htdocs/jasmine-local-popup.html | 2 +- test/spec/mkws-pazpar2.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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()); -- 1.7.10.4