diff --git a/test/routes/functional/cms-passport.js b/test/routes/functional/cms-passport.js index e69de29..b49230f 100644 --- a/test/routes/functional/cms-passport.js +++ b/test/routes/functional/cms-passport.js @@ -0,0 +1,24 @@ +'submit form': function () { + return this.remote + .get('/login') + .findById('username') + .click() + .type('test@gmail.com') + .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, + 'test@gmail.com'); + }); + }