level solved test

This commit is contained in:
Peter Cottle 2015-03-29 21:30:34 -07:00
parent 22fbcdc0a3
commit 3e657e03b0
6 changed files with 19 additions and 13 deletions

View file

@ -0,0 +1,17 @@
var CasperUtils = require('./casperUtils').CasperUtils;
casper.start(
CasperUtils.getUrlForCommands([
'level intro1 --noIntroDialog --noStartCommand',
'git commit',
'git commit'
]),
function() {
this.test.assertTitle('Learn Git Branching');
casper.waitFor(CasperUtils.waits.jsMount)
.wait(1000)
.waitFor(CasperUtils.waits.allCommandsFinished)
.then(CasperUtils.screenshot.entirePage)
.then(CasperUtils.testDone);
}).run();