make tests stable
This commit is contained in:
parent
81277451dc
commit
df6b2725ad
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue