|
|
|
@ -257,6 +257,7 @@ module.exports = { |
|
|
|
|
.click('#Check_winning_proposal_failed') |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalFailed()', 60000) |
|
|
|
|
.waitForElementVisible('*[data-id="dropdownPanelSolidityLocals"]').pause(1000) |
|
|
|
|
.click('*[data-id="dropdownPanelSolidityLocals"]') |
|
|
|
|
.waitForElementContainsText('*[data-id="solidityLocals"]', 'no locals', 60000) |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
@ -264,9 +265,10 @@ 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(1000) |
|
|
|
|
.pause(5000) |
|
|
|
|
.checkVariableDebug('soliditylocals', locals) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.pause(5000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
|
.scrollAndClick('#Check_winning_proposal_passed') |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalPassed()', 60000) |
|
|
|
@ -275,8 +277,8 @@ module.exports = { |
|
|
|
|
.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') |
|
|
|
|
.pause(5000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
|
.scrollAndClick('#Check_winning_proposal_again') |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
@ -285,9 +287,9 @@ module.exports = { |
|
|
|
|
.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') |
|
|
|
|
.pause(5000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(5000) |
|
|
|
|
.scrollAndClick('#Check_winnin_proposal_with_return_value').pause(5000) |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinninProposalWithReturnValue()', 60000) |
|
|
|
|
// eslint-disable-next-line dot-notation
|
|
|
|
|