pull/2748/head
Aniket-Engg 2 years ago committed by Aniket
parent d37bfcea62
commit 9eb90b1a6d
  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) {
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) {

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

Loading…
Cancel
Save