mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
all casper tests are failing rawr
This commit is contained in:
parent
1427ba0e58
commit
1ff2a731fb
2 changed files with 9 additions and 10 deletions
|
@ -1,21 +1,19 @@
|
|||
var CasperUtils = require('./casperUtils').CasperUtils;
|
||||
|
||||
casper.start(
|
||||
CasperUtils.getUrlForCommands([
|
||||
'asd'
|
||||
]),
|
||||
CasperUtils.getUrl(),
|
||||
function() {
|
||||
this.test.assertTitle('Learn Git Branching');
|
||||
|
||||
casper.waitFor(CasperUtils.waits.jsMount)
|
||||
.wait(300)
|
||||
casper.wait(700)
|
||||
.then(CasperUtils.screenshot.entirePage)
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'#command_c32 div.commandLineResult p',
|
||||
'The command "asd" isn\'t supported, sorry!'
|
||||
))
|
||||
/*
|
||||
.then(CasperUtils.enterCommand('git checkout C1'))
|
||||
.wait(800)
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'div.modalView.inFront div.toolbar',
|
||||
'Select a level'
|
||||
))
|
||||
.then(CasperUtils.asserts.selectorContainsText(
|
||||
'div.modalView.inFront div.displayName h3',
|
||||
'Introduction Sequence'
|
||||
|
@ -43,6 +41,7 @@ casper.start(
|
|||
'div.levelNameWrapper',
|
||||
"Level Introduction to Git Commits"
|
||||
))
|
||||
*/
|
||||
.then(CasperUtils.testDone);
|
||||
|
||||
}).run();
|
||||
|
|
|
@ -265,7 +265,7 @@ var CommandLineHistoryView = Backbone.View.extend({
|
|||
|
||||
addOne: function(command) {
|
||||
var div = document.createElement('div');
|
||||
div.id = command.cid;
|
||||
div.id = 'command_' + command.cid;
|
||||
React.render(
|
||||
React.createElement(CommandView, {command: command}),
|
||||
div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue