mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-12 15:44:25 +02:00
more command test
This commit is contained in:
parent
328823619e
commit
ad5ef4f804
1 changed files with 11 additions and 27 deletions
|
@ -15,36 +15,20 @@ CasperUtils.start(
|
|||
'#command_c32 div.commandLineResult p',
|
||||
'The command "asd" isn\'t supported, sorry!'
|
||||
))
|
||||
/*
|
||||
.then(CasperUtils.enterCommand('git commit'))
|
||||
.wait(100)
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'#command_c34 p.commandLine span:nth-child(2)',
|
||||
'git commit'
|
||||
))
|
||||
.wait(700)
|
||||
.then(CasperUtils.enterCommand('git checkout C1'))
|
||||
.wait(800)
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'div.modalView.inFront div.displayName h3',
|
||||
'Introduction Sequence'
|
||||
))
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'div.modalView.inFront div.seriesView p',
|
||||
"A nicely paced introduction to the majority of git commands"
|
||||
))
|
||||
.then(function() {
|
||||
this.page.sendEvent('keypress', this.page.event.key.Right);
|
||||
})
|
||||
.wait(700)
|
||||
.then(CasperUtils.screenshot.entirePage)
|
||||
// Now we have selected the first level
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'div.modalView.inFront div.seriesView p',
|
||||
"Introduction to Git Commits"
|
||||
))
|
||||
.then(function() {
|
||||
this.page.sendEvent('keypress', this.page.event.key.Enter);
|
||||
})
|
||||
.wait(700)
|
||||
.then(CasperUtils.enterCommand('git commit'))
|
||||
.wait(2000)
|
||||
.then(CasperUtils.screenshot.entirePage)
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'div.levelNameWrapper',
|
||||
"Level Introduction to Git Commits"
|
||||
'#commandDisplay div.commandLineWarnings p span',
|
||||
"Warning!! Detached HEAD state"
|
||||
))
|
||||
*/
|
||||
.then(CasperUtils.testDone);
|
||||
}).run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue