From a30165bf38ca16cf674be128bfc2bc4f4bacc21d Mon Sep 17 00:00:00 2001 From: Vladimir D Date: Thu, 24 Jul 2025 11:15:31 +0400 Subject: [PATCH] tests updated --- test/test.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index d3296b3..4c17f83 100755 --- a/test/test.js +++ b/test/test.js @@ -101,12 +101,10 @@ describe('Application life cycle test', function () { await browser.sleep(4000); if (!hasSession) { - await waitForElement(By.xpath('//input[@name="username"]')); - await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username); - await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password); - await browser.sleep(2000); + await waitForElement(By.id('inputUsername')); + await browser.findElement(By.id('inputUsername')).sendKeys(username); + await browser.findElement(By.id('inputPassword')).sendKeys(password); await browser.findElement(By.id('loginSubmitButton')).click(); - await browser.sleep(2000); } await waitForElement(By.xpath('//span[contains(., "Bookmarks")] | //strong[text()="Successfully authenticated from Cloudron account."]'));