all casper tests are failing rawr

This commit is contained in:
Peter Cottle 2015-04-11 12:21:19 -07:00
parent 1427ba0e58
commit 1ff2a731fb
2 changed files with 9 additions and 10 deletions

View file

@ -1,21 +1,19 @@
var CasperUtils = require('./casperUtils').CasperUtils; var CasperUtils = require('./casperUtils').CasperUtils;
casper.start( casper.start(
CasperUtils.getUrlForCommands([ CasperUtils.getUrl(),
'asd'
]),
function() { function() {
this.test.assertTitle('Learn Git Branching'); this.test.assertTitle('Learn Git Branching');
casper.waitFor(CasperUtils.waits.jsMount) casper.wait(700)
.wait(300)
.then(CasperUtils.screenshot.entirePage) .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')) .then(CasperUtils.enterCommand('git checkout C1'))
.wait(800) .wait(800)
.then(CasperUtils.asserts.selectorContainsText(
'div.modalView.inFront div.toolbar',
'Select a level'
))
.then(CasperUtils.asserts.selectorContainsText( .then(CasperUtils.asserts.selectorContainsText(
'div.modalView.inFront div.displayName h3', 'div.modalView.inFront div.displayName h3',
'Introduction Sequence' 'Introduction Sequence'
@ -43,6 +41,7 @@ casper.start(
'div.levelNameWrapper', 'div.levelNameWrapper',
"Level Introduction to Git Commits" "Level Introduction to Git Commits"
)) ))
*/
.then(CasperUtils.testDone); .then(CasperUtils.testDone);
}).run(); }).run();

View file

@ -265,7 +265,7 @@ var CommandLineHistoryView = Backbone.View.extend({
addOne: function(command) { addOne: function(command) {
var div = document.createElement('div'); var div = document.createElement('div');
div.id = command.cid; div.id = 'command_' + command.cid;
React.render( React.render(
React.createElement(CommandView, {command: command}), React.createElement(CommandView, {command: command}),
div div