mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 00:24:28 +02:00
level solved test
This commit is contained in:
parent
22fbcdc0a3
commit
3e657e03b0
6 changed files with 19 additions and 13 deletions
17
src/__tests__/casperjs/level_solved_test.js
Normal file
17
src/__tests__/casperjs/level_solved_test.js
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue