pull/5370/head
Aniket-Engg 2 years ago committed by Aniket
parent a0ee033a52
commit e50171a719
  1. 9
      apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts
  2. 2
      libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx

@ -66,6 +66,7 @@ module.exports = {
}, },
'Should show and update balance for deployed contract on JavascriptVM #group3': function (browser: NightwatchBrowser) { 'Should show and update balance for deployed contract on JavascriptVM #group3': function (browser: NightwatchBrowser) {
let instanceAddress
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]')
.clickLaunchIcon('filePanel') .clickLaunchIcon('filePanel')
.addFile('checkBalance.sol', sources[0]['checkBalance.sol']) .addFile('checkBalance.sol', sources[0]['checkBalance.sol'])
@ -76,8 +77,12 @@ module.exports = {
.pause(1000) .pause(1000)
.clickInstance(1) .clickInstance(1)
.pause(1000) .pause(1000)
.waitForElementVisible('*[data-id="instanceBal"]', 45000) .getAddressAtPosition(1, (address) => {
.assert.containsText('*[data-id="instanceBal"]', 'Balance') 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) { 'Should run low level interaction (fallback function) #group3': function (browser: NightwatchBrowser) {

@ -236,7 +236,7 @@ export function UniversalDappUI (props: UdappProps) {
</div> </div>
<div className="udapp_cActionsWrapper" data-id="universalDappUiContractActionWrapper"> <div className="udapp_cActionsWrapper" data-id="universalDappUiContractActionWrapper">
<div className="udapp_contractActionsContainer"> <div className="udapp_contractActionsContainer">
<div data-id="instanceBal" className="d-flex"> <div className="d-flex" data-id="instanceContractBal">
<label>Balance: {instanceBalance} ETH</label> <label>Balance: {instanceBalance} ETH</label>
</div> </div>
{ {

Loading…
Cancel
Save