Skip to content

Commit

Permalink
ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 16, 2014
1 parent 027e961 commit c4afa64
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/routes/functional/cms-passport.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'submit form': function () {
return this.remote
.get('/login')
.findById('username')
.click()
.type('[email protected]')
.end()
.findById('password')
.click()
.type('test')
.end()
.findById('submit')
.click()
.end()
.setFindTimeout(Infinity)
.findById('#account')
.setFindTimeout(0)
.text()
.then(function (resultText) {
assert.ok(resultText.indexOf(
'email') > -1,
'[email protected]');
});
}

0 comments on commit c4afa64

Please sign in to comment.