From df6b2725ad9e077f76644c4abb8c0ccf9377df55 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 5 Mar 2024 12:14:53 +0100 Subject: [PATCH] make tests stable --- test/test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() {