more test improvement wooo

This commit is contained in:
Peter Cottle 2015-03-23 20:13:57 -07:00
parent 4b5eb3d54d
commit c7aeae7913
3 changed files with 48 additions and 7 deletions

View file

@ -31,6 +31,7 @@ casper.start(
casper.waitFor(CasperUtils.waits.jsMount)
.waitFor(CasperUtils.waits.commandVisible)
.wait(1000)
.then(
CasperUtils.multiAssert(
CasperUtils.asserts.visibleSelectors([
@ -46,8 +47,10 @@ casper.start(
this.mouse.click('div[data-id="remote"]');
})
.then(CasperUtils.waits.idVisible('levelIcon-remote1'))
.then(CasperUtils.waits.idsVisible(
.wait(1000)
.then(CasperUtils.asserts.visibleIDs(
levelIconIDsForPages(5, numLevelSequences)
))
.then(CasperUtils.screenshot.entirePage)
.then(CasperUtils.testDone);
}).run();