mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-19 01:17:47 -04:00
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.
This commit is contained in:
parent
7dfcba1649
commit
90f5eb1270
3 changed files with 15 additions and 6 deletions
|
@ -1,6 +1,11 @@
|
|||
var env = require("./environment-protractor.js");
|
||||
|
||||
exports.config = {
|
||||
seleniumAddress: env.seleniumAddress,
|
||||
specs: ['e2e/*.spec.js']
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue