mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 12:10:21 +00:00
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.
11 lines
434 B
JavaScript
11 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();
|
|
}
|
|
}
|