|
|
|
@ -58,4 +58,31 @@ module.exports = { |
|
|
|
|
'decoded output': { "0": "uint256: 35" } |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
'Unpin & interact #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
.click('*[data-id="universalDappUiUdappUnpin"]') |
|
|
|
|
.assert.textContains('*[data-id="NoPinnedInstanceText"]', 'No pinned contracts found for selected workspace & network') |
|
|
|
|
.assert.not.elementPresent('*[data-id="deployAndRunNoInstanceText"]') |
|
|
|
|
.click('*[data-id="universalDappUiTitleExpander0"]') |
|
|
|
|
.assert.not.elementPresent('*[data-id="instanceContractPinnedAt"]') |
|
|
|
|
.assert.not.elementPresent('*[data-id="instanceContractFilePath"]') |
|
|
|
|
.clickFunction('retrieve - call') |
|
|
|
|
.testFunction('last', |
|
|
|
|
{ |
|
|
|
|
to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', |
|
|
|
|
'decoded output': { "0": "uint256: 35" } |
|
|
|
|
}) |
|
|
|
|
.clickFunction('store - transact (not payable)', { types: 'uint256 num', values: '55' }) |
|
|
|
|
.testFunction('last', |
|
|
|
|
{ |
|
|
|
|
status: '0x1 Transaction mined and execution succeed', |
|
|
|
|
'decoded input': { "uint256 num": "55" } |
|
|
|
|
}) |
|
|
|
|
.clickFunction('retrieve - call') |
|
|
|
|
.testFunction('last', |
|
|
|
|
{ |
|
|
|
|
to: 'Storage.retrieve() 0xd9145CCE52D386f254917e481eB44e9943F39138', |
|
|
|
|
'decoded output': { "0": "uint256: 55" } |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
} |