diff options
Diffstat (limited to 'js/tests/e2e/include/auth.js')
-rw-r--r-- | js/tests/e2e/include/auth.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/tests/e2e/include/auth.js b/js/tests/e2e/include/auth.js new file mode 100644 index 000000000..6dea83a77 --- /dev/null +++ b/js/tests/e2e/include/auth.js @@ -0,0 +1,17 @@ +/** + * ownCloud - News + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2012, 2014 + */ + +exports.login = function (browser) { + browser.ignoreSynchronization = true; + browser.get('http://localhost/owncloud/'); + browser.findElement(By.id('user')).sendKeys('admin'); + browser.findElement(By.id('password')).sendKeys('admin'); + browser.findElement(By.id('submit')).click(); +};
\ No newline at end of file |