diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-16 20:11:12 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-16 20:11:12 +0200 |
commit | 731823c61f17da2410dbf41e35ff5b62348a2091 (patch) | |
tree | 7a71e220c833fceb6a5e9365c8a7bb7d182a7d9e /js/protractor.chrome.conf.js | |
parent | 980da28c8fb007ea86a3f4c7fae85ebaf723fbde (diff) |
cleanup
Diffstat (limited to 'js/protractor.chrome.conf.js')
-rw-r--r-- | js/protractor.chrome.conf.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/js/protractor.chrome.conf.js b/js/protractor.chrome.conf.js new file mode 100644 index 000000000..4a615f805 --- /dev/null +++ b/js/protractor.chrome.conf.js @@ -0,0 +1,33 @@ +/** + * 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 2014 + */ + +var baseUrl = 'http://localhost'; + +exports.config = { + seleniumAddress: 'http://localhost:4444/wd/hub', + specs: ['tests/e2e/**/*.js'], + onPrepare: function () { + 'use strict'; + + browser.ignoreSynchronization = true; + browser.get(baseUrl + '/owncloud/'); + browser.findElement(By.id('user')).sendKeys('admin'); + browser.findElement(By.id('password')).sendKeys('admin'); + browser.findElement(By.id('submit')).click(); + + browser.driver.wait(function () { + return browser.driver.getCurrentUrl().then(function (url) { + var regex = /apps/; + return regex.test(url); + }); + }); + }, + baseUrl: baseUrl +};
\ No newline at end of file |