From: Wolfram Schneider Date: Sun, 10 May 2015 16:09:48 +0000 (+0000) Subject: configure watitime for Records/Targets check X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6e34068b6775669c8ca24ea064ea152c49c8213c;p=mkws-moved-to-github.git configure watitime for Records/Targets check --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 39a8461..9de6f38 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -537,10 +537,11 @@ describe("Check switch menu Records/Targets", function () { expect($("div.mkws-records").is(":visible")).toBe(false); // wait a half second, to show the target view + var waittime = 0.7; var time = (new Date).getTime(); waitsFor(function () { - return (new Date).getTime() - time > 700 ? true : false; - }, "wait some miliseconds", 1 * jasmine_config.second); + return (new Date).getTime() - time > (waittime * jasmine_config.second) ? true : false; + }, "wait some miliseconds", (waittime + 0.3) * jasmine_config.second); // look for table header runs(function () {