forked-synapse/webclient/test/protractor.conf.js
Kegan Dougal 90f5eb1270 Set required environment variables for e2e testing.
Added an 'id' to the login button so it can be automatically triggered.
Also, added an onPrepare section to protractor.conf to do the login.
2014-09-22 15:00:23 +01:00

12 lines
434 B
JavaScript

var env = require("./environment-protractor.js");
exports.config = {
seleniumAddress: env.seleniumAddress,
specs: ['e2e/*.spec.js'],
onPrepare: function() {
browser.driver.get(env.loginUrl);
browser.driver.findElement(by.id("user_id")).sendKeys(env.username);
browser.driver.findElement(by.id("password")).sendKeys(env.password);
browser.driver.findElement(by.id("login")).click();
}
}