|
|
|
@ -253,8 +253,36 @@ module.exports = { |
|
|
|
|
.setValue('*[data-id="slider"]', new Array(1).fill(browser.Keys.RIGHT_ARROW)) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalFailed()', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'vote(proposal)', 60000) |
|
|
|
|
.pause(2000) |
|
|
|
|
.pause(1000) |
|
|
|
|
.checkVariableDebug('soliditylocals', locals) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.scrollAndClick('#Check_winning_proposal_passed') |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalPassed()', 60000) |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.getElementById('slider')['value'] = '1450' }) |
|
|
|
|
.setValue('*[data-id="slider"]', new Array(1).fill(browser.Keys.RIGHT_ARROW)) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'equal(a, b, message)', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalPassed()', 60000) |
|
|
|
|
.pause(1000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.scrollAndClick('#Check_winning_proposal_again') |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.getElementById('slider')['value'] = '1150' }) |
|
|
|
|
.setValue('*[data-id="slider"]', new Array(1).fill(browser.Keys.RIGHT_ARROW)) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'equal(a, b, message)', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
|
.pause(1000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.scrollAndClick('#Check_winnin_proposal_with_return_value') |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinninProposalWithReturnValue()', 60000) |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|
.execute(function () { document.getElementById('slider')['value'] = '320' }) |
|
|
|
|
.setValue('*[data-id="slider"]', new Array(1).fill(browser.Keys.RIGHT_ARROW)) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinninProposalWithReturnValue()', 60000) |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.pause(2000) |
|
|
|
|
.openFile('tests/ballotFailedDebug_test.sol') |
|
|
|
|