diff options
Diffstat (limited to 'webclient/test/protractor.conf.js')
-rw-r--r-- | webclient/test/protractor.conf.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/webclient/test/protractor.conf.js b/webclient/test/protractor.conf.js index 66f4df5407..720096b390 100644 --- a/webclient/test/protractor.conf.js +++ b/webclient/test/protractor.conf.js @@ -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(); + } } |