diff options
Diffstat (limited to 'js/protractor.chrome.conf.js')
-rw-r--r-- | js/protractor.chrome.conf.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/js/protractor.chrome.conf.js b/js/protractor.chrome.conf.js deleted file mode 100644 index 09b597c08..000000000 --- a/js/protractor.chrome.conf.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * 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/index.php'); - 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); - }); - }); - - browser.get(baseUrl + '/owncloud/index.php/apps/news/'); - browser.driver.wait(function () { - return browser.driver.getCurrentUrl().then(function (url) { - var regex = /apps\/news/; - return regex.test(url); - }); - }); - }, - baseUrl: baseUrl -};
\ No newline at end of file |