Fixed tests

This commit is contained in:
Dennis Schwerdel 2017-06-13 09:29:14 +02:00
parent 9400c1a99f
commit ef3a205467
1 changed files with 3 additions and 3 deletions

View File

@ -64,13 +64,13 @@ describe('Application life cycle test', function () {
function loadPage(callback) { function loadPage(callback) {
browser.manage().deleteAllCookies(); browser.manage().deleteAllCookies();
browser.get('https://' + username + ':' + password + '@' + app.fqdn); browser.get('https://' + username + ':' + password + '@' + app.fqdn);
return pageLoaded().then(function() { pageLoaded().then(function() {
callback(); callback();
}); });
} }
function addFolder(callback) { function addFolder(callback) {
return pageLoaded().then(function() { pageLoaded().then(function() {
browser.findElement(by.css('[ng-click*=addFolder]')).click(); browser.findElement(by.css('[ng-click*=addFolder]')).click();
return visible(by.id('folderPath')).then(function() { return visible(by.id('folderPath')).then(function() {
return browser.findElement(by.id('folderLabel')).sendKeys('test'); return browser.findElement(by.id('folderLabel')).sendKeys('test');
@ -93,7 +93,7 @@ describe('Application life cycle test', function () {
function removeFolder(callback) { function removeFolder(callback) {
browser.get('https://' + username + ':' + password + '@' + app.fqdn); browser.get('https://' + username + ':' + password + '@' + app.fqdn);
return pageLoaded().then(function() { pageLoaded().then(function() {
browser.findElement(by.css('#folders button')).click(); browser.findElement(by.css('#folders button')).click();
setTimeout(function() { setTimeout(function() {
browser.findElement(by.css('#folder-0 button[ng-click*=editFolder]')).click(); browser.findElement(by.css('#folder-0 button[ng-click*=editFolder]')).click();