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) { async function login(uname, pass) {
await goto(`https://${app.fqdn}`, 'css=#user'); await goto(`https://${app.fqdn}`, 'label=User');
await sendKeys('css=#user', uname); await sendKeys('label=User', uname);
await sendKeys('css=#password', pass); await sendKeys('label=Password', pass);
await click('xpath=//button[@type="submit"]'); await click('Log In');
await waitFor('Actions'); await waitFor('Actions');
} }
@@ -30,12 +30,11 @@ describe('Application life cycle test', function () {
} }
async function addFolder() { async function addFolder() {
await goto(`https://${app.fqdn}`, 'css=[ng-click*=addFolder]'); await goto(`https://${app.fqdn}`, /Add Folder/);
await click('css=[ng-click*=addFolder]'); await click(/Add Folder/);
await waitFor('css=#folderPath'); await sendKeys('label=Folder Label', FOLDER);
await sendKeys('css=#folderLabel', FOLDER); await sendKeys('label=Folder Path', `/app/data/${FOLDER}`);
await sendKeys('css=#folderPath', `/app/data/${FOLDER}`); await click(/Save/);
await click('css=[ng-click*=saveFolder]');
await waitFor(FOLDER); await waitFor(FOLDER);
} }