@@ -65,7 +65,7 @@ module.exports = {
6565 . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Should fail for wrong value200' , 60000 )
6666 . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'Passed: 2' , 60000 )
6767 . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'Failed: 1' , 60000 )
68- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'FAILMyTest (tests/simple_storage_test.sol, 60000 )' , 60000 )
68+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'FAILMyTest (tests/simple_storage_test.sol)' , 60000 )
6969 // '.failed_tests_simple_storage_test_solMyTest' is the class for 'FAIL' label
7070 . verify . elementPresent ( '.failed_tests_simple_storage_test_solMyTest' )
7171 } ,
@@ -77,7 +77,7 @@ module.exports = {
7777 . click ( '*[data-id="verticalIconsKindsolidityUnitTesting"]' )
7878 . waitForElementPresent ( '*[data-id="testTabCheckAllTests"]' )
7979 . click ( '*[data-id="testTabCheckAllTests"]' )
80- . clickElementAtPosition ( '.singleTestLabel' , 60000 )
80+ . clickElementAtPosition ( '.singleTestLabel' , 1 )
8181 . scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
8282 . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/ks2b_test.sol' , 60000 )
8383 . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✓ Check project exists' , 60000 )
@@ -93,7 +93,7 @@ module.exports = {
9393 'Should stop unit tests during test execution` #group2' : function ( browser : NightwatchBrowser ) {
9494 browser . waitForElementPresent ( '*[data-id="verticalIconsKindfilePanel"]' )
9595 . waitForElementPresent ( '*[data-id="testTabRunTestsTabRunAction"]' )
96- . clickElementAtPosition ( '.singleTestLabel' , 60000 )
96+ . clickElementAtPosition ( '.singleTestLabel' , 0 )
9797 . scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
9898 . click ( '*[data-id="testTabRunTestsTabStopAction"]' )
9999 . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/Ballot_test.sol' , 60000 )
@@ -113,7 +113,7 @@ module.exports = {
113113 . clickElementAtPosition ( '.singleTestLabel' , 2 )
114114 . scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
115115 . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'SyntaxError: No visibility specified' , 60000 )
116- . waitForElementContainsText ( '*[data-id="testTabTestsExecutionStoppedError"]' , 'The test execution has been stopped because of error(s, 60000 ) in your test file' , 60000 )
116+ . waitForElementContainsText ( '*[data-id="testTabTestsExecutionStoppedError"]' , 'The test execution has been stopped because of error(s) in your test file' , 60000 )
117117 . click ( '#solidityUnittestsOutput *[data-id="tests/compilationError_test.sol"]' )
118118 . pause ( 1000 )
119119 . getEditorValue ( ( content ) => browser . assert . ok ( content . indexOf ( 'contract failOnCompilation {' ) !== - 1 ) )
@@ -291,12 +291,12 @@ module.exports = {
291291 . waitForElementContainsText ( '#solidityUnittestsOutput' , '✓ Check winnin proposal with return value' , 60000 )
292292 . click ( '#Check_winning_proposal_failed' )
293293 . waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
294- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalFailed(, 60000 )' , 60000 )
294+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalFailed()' , 60000 )
295295 . waitForElementVisible ( '*[data-id="dropdownPanelSolidityLocals"]' ) . pause ( 1000 )
296296 . waitForElementContainsText ( '*[data-id="solidityLocals"]' , 'No data available' , 60000 )
297297 . goToVMTraceStep ( 316 )
298- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalFailed(, 60000 )' , 60000 )
299- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'vote(proposal, 60000 )' , 60000 )
298+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalFailed()' , 60000 )
299+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'vote(proposal)' , 60000 )
300300 . waitForElementVisible ( {
301301 locateStrategy : 'xpath' ,
302302 selector : "//*[@data-id='treeViewDivtreeViewItemsender' and contains(.,'Ballot.Voter')]"
@@ -305,10 +305,10 @@ module.exports = {
305305 . clickLaunchIcon ( 'solidityUnitTesting' ) . pause ( 2000 )
306306 . scrollAndClick ( '#Check_winning_proposal_passed' )
307307 . waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
308- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed(, 60000 )' , 60000 )
308+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed()' , 60000 )
309309 . goToVMTraceStep ( 1451 )
310310 . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'equal(a, b, message)' , 60000 )
311- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed(, 60000 )' , 60000 )
311+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed()' , 60000 )
312312 // remix_test.sol should be opened in editor
313313 . getEditorValue ( ( content ) => browser . assert . ok ( content . indexOf ( 'library Assert {' ) !== - 1 ) )
314314 . click ( '*[id="debuggerTransactionStartButtonContainer"]' ) // stop debugging
@@ -321,7 +321,7 @@ module.exports = {
321321 . waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
322322 . goToVMTraceStep ( 1151 )
323323 . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'equal(a, b, message)' , 60000 )
324- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalAgain(, 60000 )' , 60000 )
324+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalAgain()' , 60000 )
325325 //.pause(5000)
326326 . click ( '*[id="debuggerTransactionStartButtonContainer"]' ) // stop debugging
327327 . openFile ( 'tests/ballotFailedDebug_test.sol' )
@@ -331,9 +331,9 @@ module.exports = {
331331 . scrollAndClick ( '#Check_winnin_proposal_with_return_value' )
332332 . pause ( 5000 )
333333 . waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
334- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue(, 60000 )' , 60000 )
334+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue()' , 60000 )
335335 . goToVMTraceStep ( 321 )
336- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue(, 60000 )' , 60000 )
336+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue()' , 60000 )
337337 . clickLaunchIcon ( 'filePanel' )
338338 . pause ( 2000 )
339339 . openFile ( 'tests/ballotFailedDebug_test.sol' )
0 commit comments