Commit 55529f98 55529f9837f9c633c2f31e283b5ddd04a80abfcf by Nicolas Perriault

added more tests

1 parent 86bf9f38
......@@ -15,6 +15,8 @@ casper.start('tests/site/index.html', function(self) {
self.click('a:first-child');
});
casper.assert(casper.steps.length === 1, 'start() can add a new navigation step');
casper.then(function(self) {
self.assertEvalEquals(function() {
return document.title;
......@@ -22,6 +24,8 @@ casper.then(function(self) {
self.click('a:first-child');
});
casper.assert(casper.steps.length === 2, 'then() adds a new navigation step');
casper.then(function(self) {
self.fill('form[action="form.html"]', {
'email': 'chuck@norris.com',
......