mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-09-01 04:34:58 +00:00
fix test
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user