|
|
@ -34,6 +34,19 @@ module.exports = { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'Call method from Ballot to check return value': function (browser: NightwatchBrowser) { |
|
|
|
|
|
|
|
browser |
|
|
|
|
|
|
|
.clickFunction('winnerName - call') |
|
|
|
|
|
|
|
// Test in terminal
|
|
|
|
|
|
|
|
.testFunction('last', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
to: 'Ballot.winnerName() 0x692a70D2e424a56D2C6C27aA97D1a86395877b3A', |
|
|
|
|
|
|
|
'decoded output': { "0": "bytes32: winnerName_ 0x48656c6c6f20576f726c64210000000000000000000000000000000000000000" } |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
// Test in Udapp UI
|
|
|
|
|
|
|
|
.assert.containsText('*[data-id="treeViewDiv0"]', "bytes32: winnerName_ 0x48656c6c6f20576f726c64210000000000000000000000000000000000000000") |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Debug Ballot / delegate': function (browser: NightwatchBrowser) { |
|
|
|
'Debug Ballot / delegate': function (browser: NightwatchBrowser) { |
|
|
|
browser.pause(500) |
|
|
|
browser.pause(500) |
|
|
|
.click('*[data-id="txLoggerDebugButton0x41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3"]') |
|
|
|
.click('*[data-id="txLoggerDebugButton0x41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3"]') |
|
|
|