From: Wolfram Schneider Date: Mon, 7 Jul 2014 11:55:43 +0000 (+0000) Subject: make sort by check optional X-Git-Tag: 1.0.0~420 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=6b98e1aad61b245ac046aa0555ae00bddfaacc0e;p=mkws-moved-to-github.git make sort by check optional --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index e761a88..55dbdd9 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -37,6 +37,10 @@ function init_jasmine_config() { show_record_url: true, // check for valid URL in records check_motd: true, + + // check sort by and per page menu + check_sortby: false, + dummy: false }; @@ -530,6 +534,11 @@ describe("Check removable facets links", function () { it("remove links for source and author", function () { var waitcount = 0; + if (!jasmine_config.check_sortby) { + debug("ignore check for removable facets"); + return; + } + runs(function () { var click = $("a.mkwsRemovable").eq(0).trigger("click"); @@ -572,9 +581,14 @@ describe("Check per page options", function () { var $ = mkws.$; it("show per page", function () { + if (!jasmine_config.check_sortby) { + debug("ignore check for per page select"); + return; + } var waitcount = 0; var per_page_number = 20; + runs(function () { var select = $("select.mkwsPerpage option[selected='selected']"); debug("per page default is: " + select.text() + " and unselect it"); @@ -612,6 +626,11 @@ describe("Check SortBy options", function () { var $ = mkws.$; it("show per page", function () { + if (!jasmine_config.check_sortby) { + debug("ignore check for sort by"); + return; + } + var waitcount = 0; var sort_value = 'title:1'; var per_page_number = 20;