mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-06 20:54:27 +02:00
44 lines
803 B
JavaScript
44 lines
803 B
JavaScript
var CasperUtils = require('./casperUtils').CasperUtils;
|
|
|
|
var visibleIDs = [
|
|
'commandLineHistory',
|
|
'terminal',
|
|
'interfaceWrapper',
|
|
'mainVisSpace',
|
|
'commandLineBar'
|
|
];
|
|
|
|
var selectors = [
|
|
'div.visBackgroundColor',
|
|
'p.commandLine'
|
|
];
|
|
|
|
var doneSelectors = [
|
|
'p.finished'
|
|
];
|
|
|
|
casper.start(
|
|
CasperUtils.getUrlForCommands([
|
|
'git commit',
|
|
]),
|
|
function() {
|
|
this.test.assertTitle('Learn Git Branching');
|
|
|
|
casper.waitFor(
|
|
CasperUtils.waits.jsMount
|
|
)
|
|
|
|
.then(CasperUtils.multiAssert(
|
|
CasperUtils.asserts.visibleIDs(visibleIDs),
|
|
CasperUtils.asserts.visibleSelectors(selectors)
|
|
))
|
|
|
|
.waitFor(CasperUtils.waits.allCommandsFinished)
|
|
|
|
.then(
|
|
CasperUtils.asserts.visibleSelectors(doneSelectors)
|
|
)
|
|
|
|
.then(CasperUtils.testDone);
|
|
|
|
}).run();
|