- debug("waiting for the link " + waitcount + " " + $(linkaddr) + " =" + $(linkaddr).length + " " + $(linkaddr).text());
- return ($(linkaddr).length > 0);
- }, "wait until we see a link", 1 * jasmine_config.second);
+ debug("DOM div.mkwsRecords changed");
+ });
+
+ waitsFor(function () {
+ return waitcount > 0 && $(linkaddr).length > 0;
+ }, "wait until we see a new record", 2.2 * jasmine_config.second);