Fixup test

This commit is contained in:
Johannes Zellner
2025-07-08 09:13:34 +02:00
parent d5db8f1c55
commit ab8ad38b85

View File

@@ -111,9 +111,9 @@ describe('Application life cycle test', function () {
async function addDevice() { async function addDevice() {
await browser.get(`https://${app.fqdn}/settings/device`); await browser.get(`https://${app.fqdn}/settings/device`);
await waitForElement(By.xpath('//input[@id=":r3:" or @id="«r"]')); await waitForElement(By.xpath('(//input[contains(@id, "«r")])[1]'));
await browser.findElement(By.xpath('//input[@id=":r3:" or @id="«r"]')).sendKeys(DEVICE_NAME); await browser.findElement(By.xpath('(//input[contains(@id, "«r")])[1]')).sendKeys(DEVICE_NAME);
await browser.findElement(By.xpath('//input[@id=":r4:" or @id="«r"]')).sendKeys(DEVICE_IDENTIFIER); await browser.findElement(By.xpath('(//input[contains(@id, "«r")])[2]')).sendKeys(DEVICE_IDENTIFIER);
await browser.findElement(By.xpath('//button[text()="Save"]')).click(); await browser.findElement(By.xpath('//button[text()="Save"]')).click();
await waitForElement(By.xpath(`//span[text()="${DEVICE_NAME}"]`)); await waitForElement(By.xpath(`//span[text()="${DEVICE_NAME}"]`));
} }