functional test fix for travis

This commit is contained in:
Evan You 2014-01-10 18:32:55 -05:00
parent 8c7ee32caa
commit bd835ac276
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
casper.test.begin('Routing', 10, function (test) {
casper
.start('./fixtures/routing.html', function () {
.start('./fixtures/routing.html')
.then(function () {
test.assertElementCount('div', 1)
test.assertSelectorHasText('div', 'Hi!')
})

View File

@ -1,7 +1,8 @@
casper.test.begin('Validation', 4, function (test) {
casper
.start('./fixtures/validation.html', function () {
.start('./fixtures/validation.html')
.then(function () {
test.assertElementCount('.valid', 0)
this.sendKeys('input', '@hello.com')
})