@@ -79,15 +79,15 @@ module.exports = {
79
79
. click ( '*[data-id="testTabCheckAllTests"]' )
80
80
. clickElementAtPosition ( '.singleTestLabel' , 1 )
81
81
. scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
82
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/ks2b_test.sol' , 60000 )
83
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✓ Check project exists' , 60000 )
84
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Check wrong project owner' , 60000 )
85
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Check wrong sender' , 60000 )
86
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Check wrong value' , 60000 )
87
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✓ Check project is fundable' , 60000 )
88
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'owner is incorrect' , 60000 )
89
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'wrong sender' , 60000 )
90
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'wrong value' , 60000 )
82
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/ks2b_test.sol' , 120000 )
83
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✓ Check project exists' , 120000 )
84
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Check wrong project owner' , 120000 )
85
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Check wrong sender' , 120000 )
86
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✘ Check wrong value' , 120000 )
87
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , '✓ Check project is fundable' , 120000 )
88
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'owner is incorrect' , 120000 )
89
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'wrong sender' , 120000 )
90
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'wrong value' , 120000 )
91
91
} ,
92
92
93
93
'Should stop unit tests during test execution` #group2' : function ( browser : NightwatchBrowser ) {
@@ -96,7 +96,7 @@ module.exports = {
96
96
. clickElementAtPosition ( '.singleTestLabel' , 0 )
97
97
. scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
98
98
. click ( '*[data-id="testTabRunTestsTabStopAction"]' )
99
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/Ballot_test.sol' , 60000 )
99
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/Ballot_test.sol' , 200000 )
100
100
. notContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/ks2b_test.sol' )
101
101
. notContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/simple_storage_test.sol' )
102
102
. waitForElementContainsText ( '*[data-id="testTabTestsExecutionStopped"]' , 'The test execution has been stopped' , 60000 )
@@ -112,7 +112,7 @@ module.exports = {
112
112
// .click('#singleTesttests/compilationError_test.sol')
113
113
. clickElementAtPosition ( '.singleTestLabel' , 2 )
114
114
. scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
115
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'SyntaxError: No visibility specified' , 60000 )
115
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'SyntaxError: No visibility specified' , 120000 )
116
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 )
@@ -143,7 +143,7 @@ module.exports = {
143
143
. click ( '*[data-id="testTabCheckAllTests"]' )
144
144
. clickElementAtPosition ( '.singleTestLabel' , 2 )
145
145
. scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
146
- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'Method \'add\' can not have parameters inside a test contract' , 60000 )
146
+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'Method \'add\' can not have parameters inside a test contract' , 120000 )
147
147
} ,
148
148
149
149
'Changing current path #group3' : function ( browser : NightwatchBrowser ) {
@@ -218,11 +218,11 @@ module.exports = {
218
218
. verify . attributeEquals ( '*[data-id="uiPathInput"]' , 'value' , 'tests' )
219
219
. pause ( 2000 )
220
220
. scrollAndClick ( '#runTestsTabRunAction' )
221
- . waitForElementVisible ( '*[data-id="testTabSolidityUnitTestsOutputheader"]' , 60000 )
222
- . waitForElementPresent ( '#solidityUnittestsOutput div[class^="testPass"]' , 60000 )
223
- . waitForElementContainsText ( '#solidityUnittestsOutput' , 'tests/Ballot_test.sol' , 60000 )
224
- . waitForElementContainsText ( '#solidityUnittestsOutput' , '✓ Check winning proposal' , 60000 )
225
- . waitForElementContainsText ( '#solidityUnittestsOutput' , '✓ Check winnin proposal with return value' , 60000 )
221
+ . waitForElementVisible ( '*[data-id="testTabSolidityUnitTestsOutputheader"]' , 120000 )
222
+ . waitForElementPresent ( '#solidityUnittestsOutput div[class^="testPass"]' , 120000 )
223
+ . waitForElementContainsText ( '#solidityUnittestsOutput' , 'tests/Ballot_test.sol' , 120000 )
224
+ . waitForElementContainsText ( '#solidityUnittestsOutput' , '✓ Check winning proposal' , 120000 )
225
+ . waitForElementContainsText ( '#solidityUnittestsOutput' , '✓ Check winnin proposal with return value' , 120000 )
226
226
} ,
227
227
228
228
'Solidity Unit tests with hardhat console log #group4' : function ( browser : NightwatchBrowser ) {
0 commit comments