|
@@ -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();
|