mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
Merge pull request #4453 from ansible/e2e-cleanup
E2E websocket cleanup Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -163,23 +163,6 @@ module.exports = {
|
|||||||
client.useXpath().expect.element(`${splitJt}${sparklineIcon}[1]${success}`)
|
client.useXpath().expect.element(`${splitJt}${sparklineIcon}[1]${success}`)
|
||||||
.to.be.present.before(AWX_E2E_TIMEOUT_ASYNC);
|
.to.be.present.before(AWX_E2E_TIMEOUT_ASYNC);
|
||||||
},
|
},
|
||||||
'Test pending deletion of inventories': client => {
|
|
||||||
const uniqueID = uuid().substr(0, 8);
|
|
||||||
getInventorySource(`test-pending-delete-${uniqueID}`);
|
|
||||||
client
|
|
||||||
.useCss()
|
|
||||||
.navigateTo(`${AWX_E2E_URL}/#/inventories`, false)
|
|
||||||
.waitForElementVisible('.SmartSearch-input')
|
|
||||||
.clearValue('.SmartSearch-input')
|
|
||||||
.setValue('.SmartSearch-input', [`test-pending-delete-${uniqueID}`, client.Keys.ENTER])
|
|
||||||
.pause(AWX_E2E_TIMEOUT_SHORT) // helps prevent flake
|
|
||||||
.findThenClick('.fa-trash-o', 'css')
|
|
||||||
.waitForElementVisible('#prompt_action_btn')
|
|
||||||
.pause(AWX_E2E_TIMEOUT_SHORT) // animation catches us sometimes
|
|
||||||
.click('#prompt_action_btn');
|
|
||||||
client.useCss().expect.element('[ng-if="inventory.pending_deletion"]')
|
|
||||||
.to.be.visible.before(AWX_E2E_TIMEOUT_LONG);
|
|
||||||
},
|
|
||||||
after: client => {
|
after: client => {
|
||||||
client.end();
|
client.end();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user