1
0
mirror of https://git.cloudron.io/cloudron/syncthing-app synced 2026-06-10 06:35:49 +00:00

fix tests

This commit is contained in:
Girish Ramakrishnan
2026-05-12 12:13:21 +02:00
parent a6a2bf218a
commit 8cf30550e3
+9 -10
View File
@@ -18,10 +18,10 @@ describe('Application life cycle test', function () {
});
async function login(uname, pass) {
await goto(`https://${app.fqdn}`, 'css=#user');
await sendKeys('css=#user', uname);
await sendKeys('css=#password', pass);
await click('xpath=//button[@type="submit"]');
await goto(`https://${app.fqdn}`, 'label=User');
await sendKeys('label=User', uname);
await sendKeys('label=Password', pass);
await click('Log In');
await waitFor('Actions');
}
@@ -30,12 +30,11 @@ describe('Application life cycle test', function () {
}
async function addFolder() {
await goto(`https://${app.fqdn}`, 'css=[ng-click*=addFolder]');
await click('css=[ng-click*=addFolder]');
await waitFor('css=#folderPath');
await sendKeys('css=#folderLabel', FOLDER);
await sendKeys('css=#folderPath', `/app/data/${FOLDER}`);
await click('css=[ng-click*=saveFolder]');
await goto(`https://${app.fqdn}`, /Add Folder/);
await click(/Add Folder/);
await sendKeys('label=Folder Label', FOLDER);
await sendKeys('label=Folder Path', `/app/data/${FOLDER}`);
await click(/Save/);
await waitFor(FOLDER);
}