|
|
|
@ -308,16 +308,22 @@ module.exports = { |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalPassed()', 60000) |
|
|
|
|
// remix_test.sol should be opened in editor
|
|
|
|
|
.getEditorValue((content) => browser.assert.ok(content.indexOf('library Assert {') !== -1)) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.click('*[id="debuggerTransactionStartButtonContainer"]') // stop debugging
|
|
|
|
|
.openFile('tests/ballotFailedDebug_test.sol') |
|
|
|
|
.pause(2000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
|
.waitForElementPresent('#Check_winning_proposal_again') |
|
|
|
|
.scrollAndClick('#Check_winning_proposal_again') |
|
|
|
|
.pause(5000) |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
|
.goToVMTraceStep(1151) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'equal(a, b, message)', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
|
//.pause(5000)
|
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.click('*[id="debuggerTransactionStartButtonContainer"]') // stop debugging
|
|
|
|
|
.openFile('tests/ballotFailedDebug_test.sol') |
|
|
|
|
.pause(2000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
|
.pause(5000) |
|
|
|
|
.scrollAndClick('#Check_winnin_proposal_with_return_value') |
|
|
|
|
.pause(5000) |
|
|
|
|