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) {
this.waitForElementPresent(selector, function() {
this.moveToElement(selector, 0, 0, function() {
this.waitForElementPresent(selector, () => {
this.moveToElement(selector, 0, 0, () => {
this.click(selector);
});
});

View File

@@ -77,7 +77,7 @@ module.exports = {
'verify that a sibling node can be any edge type': client => {
client
.useXpath()
.moveToElement(childNode, 0, 0, function() {
.moveToElement(childNode, 0, 0, () => {
client.pause(500);
// Concatenating the xpaths lets us click the proper node
client.click(childNode + nodeAdd);
@@ -99,7 +99,7 @@ module.exports = {
.findThenClick(edgeTypeDropdownBar)
.findThenClick(successDropdown)
.click(selectButton)
.moveToElement(newChildNode, 0, 0, function() {
.moveToElement(newChildNode, 0, 0, () => {
client.pause(500);
client.click(newChildNode + nodeAdd);
})
@@ -112,7 +112,7 @@ module.exports = {
.waitForElementPresent(alwaysDropdown)
.findThenClick(alwaysDropdown)
.click(selectButton)
.moveToElement(newChildNode, 0, 0, function() {
.moveToElement(newChildNode, 0, 0, () => {
client.pause(500);
client.click(newChildNode + nodeRemove);
})