X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fmkws-pazpar2.js;h=e0b885e9c8303584dc55dd78f71133ae8f4aeedc;hb=358cb2df732a06fe4452ad26ae6285cfa671c9bd;hp=9a9ce45bde2b0b10f07811e8e9b572544dc03025;hpb=540ec23e9fd0cab6124160eaf2a6f50b8d5f7803;p=mkws-moved-to-github.git diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 9a9ce45..e0b885e 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -4,7 +4,8 @@ * */ -var debug = mkws.debug; +var debug_level = mkws.debug_level; +var debug = mkws.debug_function; var get_hit_counter = function () { // not yet here @@ -45,7 +46,7 @@ describe("Check pazpar2 search", function () { // wait for service proxy auth waitsFor(function () { - return mkws.service_proxy_auth; + return mkws.authenticated; }, "SP auth done", 10 * 1000); runs(function () { @@ -57,6 +58,11 @@ describe("Check pazpar2 search", function () { }); +/* + * This part runs in background. It should be rewritten with + * async jasmine functions + * + */ describe("Check pazpar2 navigation", function () { // Asynchronous part it("check running search next/prev", function () { @@ -179,7 +185,7 @@ describe("Check Termlist", function () { expect(click.length).toBe(1); waitsFor(function () { - if ($("div#mkwsNavi").length && $("div#mkwsNavi").text().match(/^Source/)) { + if ($("div#mkwsNavi").length && $("div#mkwsNavi").text().match(/Source: /)) { return true; } else { return false;