1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

e2e cleanup websockets

This commit is contained in:
Daniel Sami 2019-08-09 11:32:26 -04:00
parent 9b836abf1f
commit 2064309182

View File

@ -163,23 +163,6 @@ module.exports = {
client.useXpath().expect.element(`${splitJt}${sparklineIcon}[1]${success}`)
.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 => {
client.end();
}