|
|
@ -271,6 +271,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
|
|
'Debug tests using debugger #group7': function (browser: NightwatchBrowser) { |
|
|
|
'Debug tests using debugger #group7': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
|
|
|
|
//.pause()
|
|
|
|
.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') |
|
|
|
.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') |
|
|
|
.addFile('tests/ballotFailedDebug_test.sol', sources[0]['tests/ballotFailedDebug_test.sol']) |
|
|
|
.addFile('tests/ballotFailedDebug_test.sol', sources[0]['tests/ballotFailedDebug_test.sol']) |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
@ -291,9 +292,11 @@ module.exports = { |
|
|
|
.goToVMTraceStep(316) |
|
|
|
.goToVMTraceStep(316) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalFailed()', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalFailed()', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'vote(proposal)', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'vote(proposal)', 60000) |
|
|
|
.pause(5000) |
|
|
|
.waitForElementVisible({ |
|
|
|
|
|
|
|
locateStrategy: 'xpath', |
|
|
|
|
|
|
|
selector: "//*[@data-id='treeViewDivtreeViewItemsender' and contains(.,'Ballot.Voter')]" |
|
|
|
|
|
|
|
}) |
|
|
|
.checkVariableDebug('soliditylocals', locals) |
|
|
|
.checkVariableDebug('soliditylocals', locals) |
|
|
|
.pause(5000) |
|
|
|
|
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
.scrollAndClick('#Check_winning_proposal_passed') |
|
|
|
.scrollAndClick('#Check_winning_proposal_passed') |
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
@ -303,17 +306,19 @@ module.exports = { |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalPassed()', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalPassed()', 60000) |
|
|
|
// remix_test.sol should be opened in editor
|
|
|
|
// remix_test.sol should be opened in editor
|
|
|
|
.getEditorValue((content) => browser.assert.ok(content.indexOf('library Assert {') !== -1)) |
|
|
|
.getEditorValue((content) => browser.assert.ok(content.indexOf('library Assert {') !== -1)) |
|
|
|
.pause(5000) |
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(2000) |
|
|
|
.waitForElementPresent('#Check_winning_proposal_again') |
|
|
|
.scrollAndClick('#Check_winning_proposal_again') |
|
|
|
.scrollAndClick('#Check_winning_proposal_again') |
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
.goToVMTraceStep(1151) |
|
|
|
.goToVMTraceStep(1151) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'equal(a, b, message)', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'equal(a, b, message)', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinningProposalAgain()', 60000) |
|
|
|
|
|
|
|
//.pause(5000)
|
|
|
|
|
|
|
|
.clickLaunchIcon('solidityUnitTesting') |
|
|
|
|
|
|
|
.pause(5000) |
|
|
|
|
|
|
|
.scrollAndClick('#Check_winnin_proposal_with_return_value') |
|
|
|
.pause(5000) |
|
|
|
.pause(5000) |
|
|
|
.clickLaunchIcon('solidityUnitTesting').pause(5000) |
|
|
|
|
|
|
|
.scrollAndClick('#Check_winnin_proposal_with_return_value').pause(5000) |
|
|
|
|
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="sidePanelSwapitTitle"]', 'DEBUGGER', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinninProposalWithReturnValue()', 60000) |
|
|
|
.waitForElementContainsText('*[data-id="functionPanel"]', 'checkWinninProposalWithReturnValue()', 60000) |
|
|
|
.goToVMTraceStep(321) |
|
|
|
.goToVMTraceStep(321) |
|
|
|