From 62b4fe40c1f2dfdfa60ff10b046125eb5cfdc8f4 Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Tue, 8 Aug 2017 18:22:39 +0200 Subject: [PATCH] Fixed tests --- test/package.json | 4 ++-- test/test.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/package.json b/test/package.json index 733c0ca..c36a51e 100644 --- a/test/package.json +++ b/test/package.json @@ -15,8 +15,8 @@ "mocha": "^2.5.3", "rimraf": "^2.5.3", "selenium-server-standalone-jar": "^2.53.1", - "selenium-webdriver": "^2.53.3", + "selenium-webdriver": "^2.53.1", "superagent": "^1.4.0", - "chromedriver": "^2.27.0" + "chromedriver": "^2.31.0" } } diff --git a/test/test.js b/test/test.js index ec2ad3a..1eb8ec0 100644 --- a/test/test.js +++ b/test/test.js @@ -63,7 +63,9 @@ describe('Application life cycle test', function () { function loadPage(callback) { 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 () { return pageLoaded(); }).then(function () { @@ -96,6 +98,8 @@ describe('Application life cycle test', function () { function removeFolder(callback) { browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () { + return browser.get('https://' + app.fqdn); + }).then(function () { return pageLoaded(); }).then(function() { return browser.findElement(by.css('#folders button')).click();