|
|
|
@ -271,6 +271,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
'Debug tests using debugger #group7': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|
//.pause()
|
|
|
|
|
.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') |
|
|
|
|
.addFile('tests/ballotFailedDebug_test.sol', sources[0]['tests/ballotFailedDebug_test.sol']) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
@ -291,9 +292,11 @@ module.exports = { |
|
|
|
|
.goToVMTraceStep(316) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalFailed()', 60000) |
|
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'vote(proposal)', 60000) |
|
|
|
|
.pause(5000) |
|
|
|
|
.waitForElementVisible({ |
|
|
|
|
locateStrategy: 'xpath', |
|
|
|
|
selector: "//*[@data-id='treeViewDivtreeViewItemsender' and contains(.,'Ballot.Voter')]" |
|
|
|
|
}) |
|
|
|
|
.checkVariableDebug('soliditylocals', locals) |
|
|
|
|
.pause(5000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
|
.scrollAndClick('#Check_winning_proposal_passed') |
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
@ -303,17 +306,19 @@ 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)) |
|
|
|
|
.pause(5000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
.waitForElementPresent('#Check_winning_proposal_again') |
|
|
|
|
.scrollAndClick('#Check_winning_proposal_again') |
|
|
|
|
.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') |
|
|
|
|
.pause(5000) |
|
|
|
|
.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) |
|
|
|
|
.goToVMTraceStep(321) |
|
|
|
|