|
|
@ -32,4 +32,30 @@ module.exports = { |
|
|
|
.assert.elementPresent('*[data-id="pinnedInstance0xd9145CCE52D386f254917e481eB44e9943F39138"]') |
|
|
|
.assert.elementPresent('*[data-id="pinnedInstance0xd9145CCE52D386f254917e481eB44e9943F39138"]') |
|
|
|
.assert.hasClass('*[data-id="universalDappUiUdappUnpin"]', 'text-success') |
|
|
|
.assert.hasClass('*[data-id="universalDappUiUdappUnpin"]', 'text-success') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
'Interact with pinned contract #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
|
|
|
browser |
|
|
|
|
|
|
|
.click('*[data-id="universalDappUiTitleExpander0"]') |
|
|
|
|
|
|
|
.assert.elementPresent('*[data-id="instanceContractBal"]') |
|
|
|
|
|
|
|
.assert.elementPresent('*[data-id="instanceContractPinnedAt"]') |
|
|
|
|
|
|
|
.assert.elementPresent('*[data-id="instanceContractFilePath"]') |
|
|
|
|
|
|
|
.assert.textContains('*[data-id="instanceContractFilePath"]', 'default_workspace/contracts/1_Storage.sol') |
|
|
|
|
|
|
|
.clickFunction('retrieve - call') |
|
|
|
|
|
|
|
.testFunction('last', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', |
|
|
|
|
|
|
|
'decoded output': { "0": "uint256: 0" } |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.clickFunction('store - transact (not payable)', { types: 'uint256 num', values: '35' }) |
|
|
|
|
|
|
|
.testFunction('last', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
status: '0x1 Transaction mined and execution succeed', |
|
|
|
|
|
|
|
'decoded input': { "uint256 num": "35" } |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.clickFunction('retrieve - call') |
|
|
|
|
|
|
|
.testFunction('last', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', |
|
|
|
|
|
|
|
'decoded output': { "0": "uint256: 35" } |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |