// wait until the record pops up
waitsFor(function () {
- var show = $("div.mkwsRecords div.record:nth-child(" + record_number + ") > div.details");
+ var show = $("div.mkwsRecords div.record:nth-child(" + record_number + ") > div.mkwsDetails");
//debug("poprecord: " + (show ? show.length : -1) + " " + $("div.mkwsRecords div.record").text());
return show != null && show.length ? true : false;
}, "wait some miliseconds to show up a record", 2 * jasmine_config.second);
$("div.mkwsSwitch").children('a').eq(1).trigger("click");
// now the target table must be visible
- expect($("div.mkwsBytarget").is(":visible")).toBe(true);
+ expect($("div.mkwsTargets").is(":visible")).toBe(true);
expect($("div.mkwsRecords").is(":visible")).toBe(false);
// wait a half second, to show the target view
// look for table header
runs(function () {
- expect($("div.mkwsBytarget").html()).toMatch(/Target ID/);
+ expect($("div.mkwsTargets").html()).toMatch(/Target ID/);
});
});
$("div.mkwsSwitch").children('a').eq(0).trigger("click");
// now the target table must be visible
- expect($("div.mkwsBytarget").is(":visible")).toBe(false);
+ expect($("div.mkwsTargets").is(":visible")).toBe(false);
expect($("div.mkwsRecords").is(":visible")).toBe(true);
});
});