From 56d4cee9c8293dc1749da399a94e833443e14739 Mon Sep 17 00:00:00 2001 From: Vladimir D Date: Tue, 27 May 2025 12:20:02 +0400 Subject: [PATCH] tests updated --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index e56364f..ab4e056 100644 --- a/test/test.js +++ b/test/test.js @@ -111,9 +111,9 @@ describe('Application life cycle test', function () { async function addDevice() { await browser.get(`https://${app.fqdn}/settings/device`); - await waitForElement(By.id(':r3:')); - await browser.findElement(By.id(':r3:')).sendKeys(DEVICE_NAME); - await browser.findElement(By.id(':r4:')).sendKeys(DEVICE_IDENTIFIER); + await waitForElement(By.xpath('//input[@id=":r3:" or @id="«r8»"]')); + await browser.findElement(By.xpath('//input[@id=":r3:" or @id="«r8»"]')).sendKeys(DEVICE_NAME); + await browser.findElement(By.xpath('//input[@id=":r4:" or @id="«r9»"]')).sendKeys(DEVICE_IDENTIFIER); await browser.findElement(By.xpath('//button[text()="Save"]')).click(); await waitForElement(By.xpath(`//span[text()="${DEVICE_NAME}"]`)); }