mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 15:37:29 -02:30
improve test stability for inventory copy and credentials form
This commit is contained in:
@@ -197,8 +197,12 @@ module.exports = {
|
||||
|
||||
credentials.section.list.section.search
|
||||
.waitForElementVisible('@input', AWX_E2E_TIMEOUT_LONG)
|
||||
.setValue('@input', `name:${store.credential.name}`)
|
||||
.click('@searchButton');
|
||||
.waitForElementVisible('@searchButton', AWX_E2E_TIMEOUT_LONG)
|
||||
.sendKeys('@input', `name:${store.credential.name}`)
|
||||
.sendKeys('@input', client.Keys.ENTER);
|
||||
|
||||
client.pause(1000);
|
||||
client.waitForElementNotVisible('div.spinny');
|
||||
|
||||
credentials.waitForElementNotPresent(`${row}:nth-of-type(2)`);
|
||||
credentials.expect.element(row).text.contain(store.credential.name);
|
||||
|
||||
@@ -96,7 +96,7 @@ module.exports = {
|
||||
|
||||
inventories.expect.element(`#inventories_table tr[id="${data.inventory.id}"]`).visible;
|
||||
inventories.expect.element('#copy-action').visible;
|
||||
inventories.expect.element('#copy-action[class$="btn-disabled"]').present;
|
||||
inventories.expect.element('#copy-action[class*="btn-disabled"]').present;
|
||||
|
||||
client.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user