mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
90f5eb1270
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.
12 lines
434 B
JavaScript
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();
|
|
}
|
|
}
|