Skip to content

Instantly share code, notes, and snippets.

[4mRunning "simplemocha:all" (simplemocha) task
1..1
ok 1 Array indexOf() should return -1 when the value is not present
# tests 1
# pass 1
# fail 0
Done, without errors.
@bmccaffray
bmccaffray / gist:31b19a9fea902526fbf3
Created August 11, 2014 21:22
casper test to check h1
casper.test.begin('check if url is your blog', 1, function suite(test){
casper.start('http://personal-blog-site.herokuapp.com/', function(){
this.echo(this.getHTML('.nav h1'));
});
casper.then(function(){
test.assertTextExists('my blog', 'it is in fact, your blog');
});
casper.run(function(){