1
0
mirror of https://git.cloudron.io/cloudron/syncthing-app synced 2025-09-01 04:34:58 +00:00
This commit is contained in:
Girish Ramakrishnan
2025-05-06 13:37:16 +02:00
parent fa0677c155
commit e2ea35f9b7

View File

@@ -96,9 +96,11 @@ describe('Application life cycle test', function () {
async function addFolder() {
await browser.get('https://' + app.fqdn);
await browser.findElement(By.css('[ng-click*=addFolder]')).click();
await browser.sleep(8000);
await waitForElement(By.id('folderPath'));
await browser.sleep(8000); // wait more, not sure why this is needed
await browser.findElement(By.id('folderLabel')).sendKeys(FOLDER);
await browser.findElement(By.id('folderPath')).sendKeys(`/app/data/${FOLDER}`);
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"