diff --git a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts index 075bd0e05a..e1edef7dad 100644 --- a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts +++ b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts @@ -66,6 +66,7 @@ module.exports = { }, 'Should show and update balance for deployed contract on JavascriptVM #group3': function (browser: NightwatchBrowser) { + let instanceAddress browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') .clickLaunchIcon('filePanel') .addFile('checkBalance.sol', sources[0]['checkBalance.sol']) @@ -76,8 +77,12 @@ module.exports = { .pause(1000) .clickInstance(1) .pause(1000) - .waitForElementVisible('*[data-id="instanceBal"]', 45000) - .assert.containsText('*[data-id="instanceBal"]', 'Balance') + .getAddressAtPosition(1, (address) => { + instanceAddress = address + browser + .waitForElementVisible(`#instance${instanceAddress} [data-id="instanceContractBal"]`) + .assert.containsText(`#instance${instanceAddress} [data-id="instanceContractBal"]`, 'Balance:') + }) }, 'Should run low level interaction (fallback function) #group3': function (browser: NightwatchBrowser) { diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index d7cd9c09c3..46d2f2dfb7 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -236,7 +236,7 @@ export function UniversalDappUI (props: UdappProps) {