@@ -65,7 +65,7 @@ module.exports = {
65
65
. waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Should fail for wrong value200' , 60000 )
66
66
. waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'Passed: 2' , 60000 )
67
67
. 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 )
69
69
// '.failed_tests_simple_storage_test_solMyTest' is the class for 'FAIL' label
70
70
. verify . elementPresent ( '.failed_tests_simple_storage_test_solMyTest' )
71
71
} ,
@@ -77,7 +77,7 @@ module.exports = {
77
77
. click ( '*[data-id="verticalIconsKindsolidityUnitTesting"]' )
78
78
. waitForElementPresent ( '*[data-id="testTabCheckAllTests"]' )
79
79
. click ( '*[data-id="testTabCheckAllTests"]' )
80
- . clickElementAtPosition ( '.singleTestLabel' , 60000 )
80
+ . clickElementAtPosition ( '.singleTestLabel' , 1 )
81
81
. scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
82
82
. waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/ks2b_test.sol' , 60000 )
83
83
. waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✓ Check project exists' , 60000 )
@@ -93,7 +93,7 @@ module.exports = {
93
93
'Should stop unit tests during test execution` #group2' : function ( browser : NightwatchBrowser ) {
94
94
browser . waitForElementPresent ( '*[data-id="verticalIconsKindfilePanel"]' )
95
95
. waitForElementPresent ( '*[data-id="testTabRunTestsTabRunAction"]' )
96
- . clickElementAtPosition ( '.singleTestLabel' , 60000 )
96
+ . clickElementAtPosition ( '.singleTestLabel' , 0 )
97
97
. scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
98
98
. click ( '*[data-id="testTabRunTestsTabStopAction"]' )
99
99
. waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/Ballot_test.sol' , 60000 )
@@ -113,7 +113,7 @@ module.exports = {
113
113
. clickElementAtPosition ( '.singleTestLabel' , 2 )
114
114
. scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
115
115
. 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 )
117
117
. click ( '#solidityUnittestsOutput *[data-id="tests/compilationError_test.sol"]' )
118
118
. pause ( 1000 )
119
119
. getEditorValue ( ( content ) => browser . assert . ok ( content . indexOf ( 'contract failOnCompilation {' ) !== - 1 ) )
@@ -291,12 +291,12 @@ module.exports = {
291
291
. waitForElementContainsText ( '#solidityUnittestsOutput' , '✓ Check winnin proposal with return value' , 60000 )
292
292
. click ( '#Check_winning_proposal_failed' )
293
293
. waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
294
- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalFailed(, 60000 )' , 60000 )
294
+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalFailed()' , 60000 )
295
295
. waitForElementVisible ( '*[data-id="dropdownPanelSolidityLocals"]' ) . pause ( 1000 )
296
296
. waitForElementContainsText ( '*[data-id="solidityLocals"]' , 'No data available' , 60000 )
297
297
. 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 )
300
300
. waitForElementVisible ( {
301
301
locateStrategy : 'xpath' ,
302
302
selector : "//*[@data-id='treeViewDivtreeViewItemsender' and contains(.,'Ballot.Voter')]"
@@ -305,10 +305,10 @@ module.exports = {
305
305
. clickLaunchIcon ( 'solidityUnitTesting' ) . pause ( 2000 )
306
306
. scrollAndClick ( '#Check_winning_proposal_passed' )
307
307
. waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
308
- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed(, 60000 )' , 60000 )
308
+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed()' , 60000 )
309
309
. goToVMTraceStep ( 1451 )
310
310
. waitForElementContainsText ( '*[data-id="functionPanel"]' , 'equal(a, b, message)' , 60000 )
311
- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed(, 60000 )' , 60000 )
311
+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalPassed()' , 60000 )
312
312
// remix_test.sol should be opened in editor
313
313
. getEditorValue ( ( content ) => browser . assert . ok ( content . indexOf ( 'library Assert {' ) !== - 1 ) )
314
314
. click ( '*[id="debuggerTransactionStartButtonContainer"]' ) // stop debugging
@@ -321,7 +321,7 @@ module.exports = {
321
321
. waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
322
322
. goToVMTraceStep ( 1151 )
323
323
. waitForElementContainsText ( '*[data-id="functionPanel"]' , 'equal(a, b, message)' , 60000 )
324
- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalAgain(, 60000 )' , 60000 )
324
+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinningProposalAgain()' , 60000 )
325
325
//.pause(5000)
326
326
. click ( '*[id="debuggerTransactionStartButtonContainer"]' ) // stop debugging
327
327
. openFile ( 'tests/ballotFailedDebug_test.sol' )
@@ -331,9 +331,9 @@ module.exports = {
331
331
. scrollAndClick ( '#Check_winnin_proposal_with_return_value' )
332
332
. pause ( 5000 )
333
333
. waitForElementContainsText ( '*[data-id="sidePanelSwapitTitle"]' , 'DEBUGGER' , 60000 )
334
- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue(, 60000 )' , 60000 )
334
+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue()' , 60000 )
335
335
. goToVMTraceStep ( 321 )
336
- . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue(, 60000 )' , 60000 )
336
+ . waitForElementContainsText ( '*[data-id="functionPanel"]' , 'checkWinninProposalWithReturnValue()' , 60000 )
337
337
. clickLaunchIcon ( 'filePanel' )
338
338
. pause ( 2000 )
339
339
. openFile ( 'tests/ballotFailedDebug_test.sol' )
0 commit comments