diff --git a/test/test.js b/test/test.js index 5c74fd5..bde5930 100644 --- a/test/test.js +++ b/test/test.js @@ -87,12 +87,13 @@ describe('Application life cycle test', function () { await browser.get('https://' + app.fqdn); await browser.findElement(By.css('[ng-click*=addFolder]')).click(); await waitForElement(By.id('folderPath')); - await browser.sleep(4000); // wait more, not sure why this is needed + await browser.sleep(8000); // wait more, not sure why this is needed await browser.findElement(By.id('folderLabel')).sendKeys(FOLDER); - await browser.sleep(4000); // without this sometimes only part of the folder name gets through + await browser.sleep(8000); // without this sometimes only part of the folder name gets through await browser.findElement(By.css('[ng-click*=saveFolder]')).click(); + await browser.sleep(8000); // without this "stale element" await waitForElement(By.xpath(`//span[contains(text(), '${FOLDER}')]`)); - await browser.sleep(4000); + await browser.sleep(8000); } async function checkFolder() {