lint fixes

This commit is contained in:
Daniel Sami
2018-10-11 12:24:55 -04:00
parent 8fceaf8810
commit 1e3c229460
2 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
exports.command = function findThenClick (selector) { exports.command = function findThenClick (selector) {
this.waitForElementPresent(selector, function() { this.waitForElementPresent(selector, () => {
this.moveToElement(selector, 0, 0, function() { this.moveToElement(selector, 0, 0, () => {
this.click(selector); this.click(selector);
}); });
}); });

View File

@@ -17,7 +17,7 @@ const leafNode = "//*[@id='node-6']";
const nodeAdd = "//*[contains(@class, 'nodeAddCross')]"; const nodeAdd = "//*[contains(@class, 'nodeAddCross')]";
const nodeRemove = "//*[contains(@class, 'nodeRemoveCross')]"; const nodeRemove = "//*[contains(@class, 'nodeRemoveCross')]";
//one of the jobs or projects or inventories // one of the jobs or projects or inventories
const testActionsProject = "//td[contains(text(), 'test-actions-project')]"; const testActionsProject = "//td[contains(text(), 'test-actions-project')]";
const testActionsJob = "//td[contains(text(), 'test-actions-job')]"; const testActionsJob = "//td[contains(text(), 'test-actions-job')]";
@@ -77,10 +77,10 @@ module.exports = {
'verify that a sibling node can be any edge type': client => { 'verify that a sibling node can be any edge type': client => {
client client
.useXpath() .useXpath()
.moveToElement(childNode, 0, 0, function() { .moveToElement(childNode, 0, 0, () => {
client.pause(500); client.pause(500);
// Concatenating the xpaths lets us click the proper node // Concatenating the xpaths lets us click the proper node
client.click(childNode+nodeAdd); client.click(childNode + nodeAdd);
}) })
.pause(1000) .pause(1000)
.findThenClick(testActionsJob) .findThenClick(testActionsJob)
@@ -99,9 +99,9 @@ module.exports = {
.findThenClick(edgeTypeDropdownBar) .findThenClick(edgeTypeDropdownBar)
.findThenClick(successDropdown) .findThenClick(successDropdown)
.click(selectButton) .click(selectButton)
.moveToElement(newChildNode, 0, 0, function() { .moveToElement(newChildNode, 0, 0, () => {
client.pause(500); client.pause(500);
client.click(newChildNode+nodeAdd); client.click(newChildNode + nodeAdd);
}) })
.pause(1000) .pause(1000)
.findThenClick(testActionsJob) .findThenClick(testActionsJob)
@@ -112,9 +112,9 @@ module.exports = {
.waitForElementPresent(alwaysDropdown) .waitForElementPresent(alwaysDropdown)
.findThenClick(alwaysDropdown) .findThenClick(alwaysDropdown)
.click(selectButton) .click(selectButton)
.moveToElement(newChildNode, 0, 0, function() { .moveToElement(newChildNode, 0, 0, () => {
client.pause(500); client.pause(500);
client.click(newChildNode+nodeRemove); client.click(newChildNode + nodeRemove);
}) })
.pause(1000) .pause(1000)
.findThenClick(deleteConfirmation) .findThenClick(deleteConfirmation)