make tests stable

master
Girish Ramakrishnan 2024-03-05 12:14:53 +01:00
parent 81277451dc
commit df6b2725ad
1 changed files with 4 additions and 3 deletions

View File

@ -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() {