Fixup test
This commit is contained in:
@@ -111,9 +111,9 @@ describe('Application life cycle test', function () {
|
||||
|
||||
async function addDevice() {
|
||||
await browser.get(`https://${app.fqdn}/settings/device`);
|
||||
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 waitForElement(By.xpath('(//input[contains(@id, "«r")])[1]'));
|
||||
await browser.findElement(By.xpath('(//input[contains(@id, "«r")])[1]')).sendKeys(DEVICE_NAME);
|
||||
await browser.findElement(By.xpath('(//input[contains(@id, "«r")])[2]')).sendKeys(DEVICE_IDENTIFIER);
|
||||
await browser.findElement(By.xpath('//button[text()="Save"]')).click();
|
||||
await waitForElement(By.xpath(`//span[text()="${DEVICE_NAME}"]`));
|
||||
}
|
||||
|
Reference in New Issue
Block a user