From 2350efb47ae225bd1b3ed659972084a44ad8851b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 25 Aug 2020 10:25:51 -0400 Subject: [PATCH] fix some of the e2e tests --- apps/remix-ide-e2e/src/tests/ballot.test.ts | 4 ++-- libs/remix-lib/src/trace/traceManager.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/ballot.test.ts b/apps/remix-ide-e2e/src/tests/ballot.test.ts index cfc18f2f47..cc694d7cde 100644 --- a/apps/remix-ide-e2e/src/tests/ballot.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot.test.ts @@ -25,7 +25,7 @@ module.exports = { .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') .setValue('input[placeholder="bytes32[] proposalNames"]', '["0x48656c6c6f20576f726c64210000000000000000000000000000000000000000"]') .click('*[data-id="Deploy - transact (not payable)"]') - .waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]') + .waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]', 5000) .click('*[data-id="universalDappUiTitleExpander"]') .clickFunction('delegate - transact (not payable)', {types: 'address to', values: '"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'}) .testFunction('0x41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3', @@ -57,7 +57,7 @@ module.exports = { .clickLaunchIcon('fileExplorers') .addAtAddressInstance('0x692a70D2e424a56D2C6C27aA97D1a86395877b3A', true, true) .pause(500) - .waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]') + .waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]', 5000) .click('*[data-id="universalDappUiTitleExpander"]') .clickFunction('delegate - transact (not payable)', {types: 'address to', values: '"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'}) .testFunction('0xca58080c8099429caeeffe43b8104df919c2c543dceb9edf9242fa55f045c803', diff --git a/libs/remix-lib/src/trace/traceManager.js b/libs/remix-lib/src/trace/traceManager.js index 92fe652523..386ec78e25 100644 --- a/libs/remix-lib/src/trace/traceManager.js +++ b/libs/remix-lib/src/trace/traceManager.js @@ -101,7 +101,7 @@ TraceManager.prototype.getCallDataAt = function (stepIndex) { return [this.traceCache.callsData[callDataChange]] } -TraceManager.prototype.buildCallPath = function (stepIndex) { +TraceManager.prototype.buildCallPath = async function (stepIndex) { try { this.checkRequestedStep(stepIndex) } catch (check) {