mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Fixes delete node shifting e2e test
This commit is contained in:
@@ -152,57 +152,47 @@ module.exports = {
|
|||||||
.findThenClick(alwaysDropdown)
|
.findThenClick(alwaysDropdown)
|
||||||
.click(nodeSelectButton);
|
.click(nodeSelectButton);
|
||||||
},
|
},
|
||||||
// TODO: I'm not sure exactly what this is supposed to test
|
'Verify node-shifting behavior upon deletion': client => {
|
||||||
// 'Verify node-shifting behavior upon deletion': client => {
|
client
|
||||||
// client
|
.moveToElement(xPathNodeById(newChildNodeId), 0, 0, () => {
|
||||||
// .findThenClick(xPathNodeById(newChildNodeId))
|
client.pause(500);
|
||||||
// .pause(1000)
|
client.waitForElementNotVisible(spinny);
|
||||||
// .waitForElementNotVisible(spinny)
|
client.click(xPathNodeById(newChildNodeId) + nodeAdd);
|
||||||
// .findThenClick(edgeTypeDropdownBar)
|
})
|
||||||
// .findThenClick(successDropdown)
|
.pause(1000)
|
||||||
// .click(nodeSelectButton)
|
.waitForElementNotVisible(spinny);
|
||||||
// .moveToElement(xPathNodeById(newChildNodeId), 0, 0, () => {
|
|
||||||
// client.pause(500);
|
// Grab the id of the new child node for later
|
||||||
// client.waitForElementNotVisible(spinny);
|
client.getAttribute('//*[contains(@class, "WorkflowChart-isNodeBeingAdded")]/..', 'id', function(res) {
|
||||||
// client.click(newChildNode + nodeAdd);
|
// I had to nest this logic in order to ensure that leafNodeId was available later on.
|
||||||
// })
|
// Separating this out resulted in leafNodeId being `undefined` when sent to xPathLinkById
|
||||||
// .pause(1000)
|
leafNodeId = res.value.split('-')[1];
|
||||||
// .waitForElementNotVisible(spinny);
|
client
|
||||||
//
|
.clearValue(jobSearchBar)
|
||||||
// // Grab the id of the new child node for later
|
.setValue(jobSearchBar, [testActionsJobText, client.Keys.ENTER])
|
||||||
// client.getAttribute('//*[contains(@class, "WorkflowChart-isNodeBeingAdded")]/..', 'id', function(res) {
|
.pause(1000)
|
||||||
// leafNodeId = res.value.split('-')[1];
|
.findThenClick(testActionsJob)
|
||||||
// });
|
.pause(1000)
|
||||||
//
|
.waitForElementNotVisible(spinny)
|
||||||
// client
|
.findThenClick(edgeTypeDropdownBar)
|
||||||
// .clearValue(jobSearchBar)
|
.waitForElementPresent(successDropdown)
|
||||||
// .setValue(jobSearchBar, [testActionsJobText, client.Keys.ENTER])
|
.waitForElementPresent(failureDropdown)
|
||||||
// .pause(1000)
|
.waitForElementPresent(alwaysDropdown)
|
||||||
// .findThenClick(testActionsJob)
|
.findThenClick(alwaysDropdown)
|
||||||
// .pause(1000)
|
.click(nodeSelectButton)
|
||||||
// .waitForElementNotVisible(spinny)
|
.moveToElement(xPathNodeById(newChildNodeId), 0, 0, () => {
|
||||||
// .findThenClick(edgeTypeDropdownBar)
|
client.pause(500);
|
||||||
// .waitForElementPresent(successDropdown)
|
client.waitForElementNotVisible(spinny);
|
||||||
// .waitForElementPresent(failureDropdown)
|
client.click(xPathNodeById(newChildNodeId) + nodeRemove);
|
||||||
// .waitForElementPresent(alwaysDropdown)
|
})
|
||||||
// .findThenClick(alwaysDropdown)
|
.pause(1000)
|
||||||
// .click(nodeSelectButton)
|
.waitForElementNotVisible(spinny)
|
||||||
// .moveToElement(xPathNodeById(newChildNodeId), 0, 0, () => {
|
.findThenClick(deleteConfirmation)
|
||||||
// client.pause(500);
|
.waitForElementVisible(xPathLinkById(initialJobNodeId, leafNodeId));
|
||||||
// client.waitForElementNotVisible(spinny);
|
});
|
||||||
// client.click(newChildNode + nodeRemove);
|
|
||||||
// })
|
|
||||||
// .pause(1000)
|
},
|
||||||
// .waitForElementNotVisible(spinny)
|
|
||||||
// .findThenClick(deleteConfirmation)
|
|
||||||
// .findThenClick(leafNode)
|
|
||||||
// .pause(1000)
|
|
||||||
// .waitForElementNotVisible(spinny)
|
|
||||||
// .findThenClick(edgeTypeDropdownBar)
|
|
||||||
// .waitForElementPresent(successDropdown)
|
|
||||||
// .waitForElementPresent(failureDropdown)
|
|
||||||
// .waitForElementPresent(alwaysDropdown);
|
|
||||||
// },
|
|
||||||
after: client => {
|
after: client => {
|
||||||
client.end();
|
client.end();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user