Skip to content

Commit

Permalink
webcompat#272 Adds login to the site
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Aug 6, 2015
1 parent d122e71 commit f430106
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion tests/functional/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@ define([
return intern.config.siteRoot + '/issues/' + num;
};

// labels tests to come here
registerSuite({
name: 'labels',

'log in': function () {
// for testing labels we need to be logged.
return this.remote
.setFindTimeout(intern.config.wc.pageLoadTimeout)
.get(require.toUrl(url(100)))
.findByCssSelector('.js-login-link').click()
.end()
.findByCssSelector('#login_field').click()
.type(intern.config.wc.user)
.end()
.findByCssSelector('#password').click()
.type(intern.config.wc.pw)
.end()
.findByCssSelector('input[type=submit]').submit()
.end()
.findByCssSelector('button').submit()
.end();
},
});
});

0 comments on commit f430106

Please sign in to comment.