Fixed tests

This commit is contained in:
Dennis Schwerdel 2017-08-08 18:22:39 +02:00
parent c3533569c1
commit 62b4fe40c1
2 changed files with 7 additions and 3 deletions

View File

@ -15,8 +15,8 @@
"mocha": "^2.5.3", "mocha": "^2.5.3",
"rimraf": "^2.5.3", "rimraf": "^2.5.3",
"selenium-server-standalone-jar": "^2.53.1", "selenium-server-standalone-jar": "^2.53.1",
"selenium-webdriver": "^2.53.3", "selenium-webdriver": "^2.53.1",
"superagent": "^1.4.0", "superagent": "^1.4.0",
"chromedriver": "^2.27.0" "chromedriver": "^2.31.0"
} }
} }

View File

@ -63,7 +63,9 @@ describe('Application life cycle test', function () {
function loadPage(callback) { function loadPage(callback) {
browser.manage().deleteAllCookies().then(function () { browser.manage().deleteAllCookies().then(function () {
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn); return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
return browser.get('https://' + app.fqdn);
});
}).then(function () { }).then(function () {
return pageLoaded(); return pageLoaded();
}).then(function () { }).then(function () {
@ -96,6 +98,8 @@ describe('Application life cycle test', function () {
function removeFolder(callback) { function removeFolder(callback) {
browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () { browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
return browser.get('https://' + app.fqdn);
}).then(function () {
return pageLoaded(); return pageLoaded();
}).then(function() { }).then(function() {
return browser.findElement(by.css('#folders button')).click(); return browser.findElement(by.css('#folders button')).click();