pull/1232/head
aniket-engg 4 years ago committed by Aniket
parent c755c05f46
commit ae684a13da
  1. 2
      apps/remix-ide-e2e/src/commands/getLastTransactionHash.ts
  2. 4
      apps/remix-ide-e2e/src/tests/ballot.test.ts

@ -22,7 +22,7 @@ function getLastTransactionHash (browser: NightwatchBrowser, callback: (hash: st
const current = deployedContracts[i] const current = deployedContracts[i]
const attr = current.getAttribute('data-id') const attr = current.getAttribute('data-id')
// For web3 provider, a contract call simulates a tx hash starting with 'block_txcall' // For web3 provider, a contract call simulates a tx hash starting with 'block_txcall'
if (attr && ( attr.replace('block_tx', '').startsWith('0x') || attr.replace('block_txcall', '').startsWith('0x'))) { if (attr && (attr.replace('block_tx', '').startsWith('0x') || attr.replace('block_txcall', '').startsWith('0x'))) {
return attr.replace('block_tx', '') return attr.replace('block_tx', '')
} }
} }

@ -93,7 +93,7 @@ module.exports = {
.clickFunction('delegate - transact (not payable)', { types: 'address to', values: '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' }) .clickFunction('delegate - transact (not payable)', { types: 'address to', values: '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' })
.journalLastChildIncludes('Ballot.delegate(address)') .journalLastChildIncludes('Ballot.delegate(address)')
.journalLastChildIncludes('data: 0x5c1...a733c') .journalLastChildIncludes('data: 0x5c1...a733c')
}, },
'Call method from Ballot to check return value using external web3': function (browser: NightwatchBrowser) { 'Call method from Ballot to check return value using external web3': function (browser: NightwatchBrowser) {
browser browser
@ -107,7 +107,7 @@ module.exports = {
// Test in Udapp UI , treeViewDiv0 shows returned value on method click // Test in Udapp UI , treeViewDiv0 shows returned value on method click
.assert.containsText('*[data-id="treeViewDiv0"]', 'bytes32: winnerName_ 0x48656c6c6f20576f726c64210000000000000000000000000000000000000000') .assert.containsText('*[data-id="treeViewDiv0"]', 'bytes32: winnerName_ 0x48656c6c6f20576f726c64210000000000000000000000000000000000000000')
.end() .end()
}, }
} }
const localsCheck = { const localsCheck = {

Loading…
Cancel
Save