From 9f78b41ca2293bac383f9027abdc42386735be41 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 2 May 2018 13:33:07 -0700 Subject: [PATCH] make the tests work --- test/test.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 368d3a7..09e672e 100644 --- a/test/test.js +++ b/test/test.js @@ -46,7 +46,7 @@ describe('Application life cycle test', function () { var LOCATION = 'test'; var TEST_TIMEOUT = 30000; - var FOLDER = 'outerspace'; + var FOLDER = 'xmf'; // keep this small. long folder names fail in automation, not sure why var SYNC_PORT = 22001; var app; @@ -89,12 +89,18 @@ describe('Application life cycle test', function () { return browser.findElement(by.css('[ng-click*=addFolder]')).click(); }).then(function () { return visible(by.id('folderPath')); + }).then(function () { + return browser.sleep(4000); // wait more, not sure why this is needed }).then(function() { return browser.findElement(by.id('folderLabel')).sendKeys(FOLDER); + }).then(function () { + return browser.sleep(4000); // without this sometimes only part of the folder name gets through }).then(function() { return browser.findElement(by.css('[ng-click*=saveFolder]')).click(); }).then(function() { return browser.wait(until.elementLocated(by.css('#folders .panel-status span[ng-switch-when=unshared]')), TEST_TIMEOUT); + }).then(function () { + return browser.sleep(4000); }).then(function() { callback(); });