From f63dfa4349959e5afb14c0095bdb1ed9444fdba4 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 15 Feb 2021 17:56:54 +0530 Subject: [PATCH] linting fix --- .../src/commands/addAtAddressInstance.ts | 4 +-- apps/remix-ide-e2e/src/tests/ballot.test.ts | 26 +++++++++---------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts index 31d8a96078..c3b59aa332 100644 --- a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts +++ b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts @@ -15,9 +15,7 @@ class addAtAddressInstance extends EventEmitter { function addInstance (browser: NightwatchBrowser, address: string, isValidFormat: boolean, isValidChecksum: boolean, callback: VoidFunction) { browser.clickLaunchIcon('udapp').clearValue('.ataddressinput').setValue('.ataddressinput', address, function () { - if (!isValidFormat || !isValidChecksum) - browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') - else callback() + if (!isValidFormat || !isValidChecksum) { browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') } else callback() }) } diff --git a/apps/remix-ide-e2e/src/tests/ballot.test.ts b/apps/remix-ide-e2e/src/tests/ballot.test.ts index 2fbdb2a0bb..4728197006 100644 --- a/apps/remix-ide-e2e/src/tests/ballot.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot.test.ts @@ -36,19 +36,19 @@ module.exports = { }) }, - // 'Debug Ballot / delegate': function (browser: NightwatchBrowser) { - // browser.pause(500) - // .click('*[data-id="txLoggerDebugButton0x41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3"]') - // .waitForElementVisible('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]') - // // .clickLaunchIcon('debugger') - // .click('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]') - // .pause(2000) - // .waitForElementVisible('#stepdetail') - // .goToVMTraceStep(79) - // .pause(1000) - // .checkVariableDebug('soliditystate', stateCheck) - // .checkVariableDebug('soliditylocals', localsCheck) - // }, + 'Debug Ballot / delegate': function (browser: NightwatchBrowser) { + browser.pause(500) + .click('*[data-id="txLoggerDebugButton0x41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3"]') + .waitForElementVisible('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]') + // .clickLaunchIcon('debugger') + .click('*[data-id="buttonNavigatorJumpPreviousBreakpoint"]') + .pause(2000) + .waitForElementVisible('#stepdetail') + .goToVMTraceStep(79) + .pause(1000) + .checkVariableDebug('soliditystate', stateCheck) + .checkVariableDebug('soliditylocals', localsCheck) + }, 'Access Ballot via at address': function (browser: NightwatchBrowser) { browser.clickLaunchIcon('udapp')