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