@@ -79,15 +79,15 @@ module.exports = {
7979 . click ( '*[data-id="testTabCheckAllTests"]' )
8080 . clickElementAtPosition ( '.singleTestLabel' , 1 )
8181 . 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 )
9191 } ,
9292
9393 'Should stop unit tests during test execution` #group2' : function ( browser : NightwatchBrowser ) {
@@ -96,7 +96,7 @@ module.exports = {
9696 . clickElementAtPosition ( '.singleTestLabel' , 0 )
9797 . scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
9898 . click ( '*[data-id="testTabRunTestsTabStopAction"]' )
99- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/Ballot_test.sol' , 60000 )
99+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/Ballot_test.sol' , 200000 )
100100 . notContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/ks2b_test.sol' )
101101 . notContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'tests/simple_storage_test.sol' )
102102 . waitForElementContainsText ( '*[data-id="testTabTestsExecutionStopped"]' , 'The test execution has been stopped' , 60000 )
@@ -112,7 +112,7 @@ module.exports = {
112112 // .click('#singleTesttests/compilationError_test.sol')
113113 . clickElementAtPosition ( '.singleTestLabel' , 2 )
114114 . scrollAndClick ( '*[data-id="testTabRunTestsTabRunAction"]' )
115- . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'SyntaxError: No visibility specified' , 60000 )
115+ . waitForElementContainsText ( '*[data-id="testTabSolidityUnitTestsOutput"]' , 'SyntaxError: No visibility specified' , 120000 )
116116 . 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 )
@@ -143,7 +143,7 @@ module.exports = {
143143 . click ( '*[data-id="testTabCheckAllTests"]' )
144144 . clickElementAtPosition ( '.singleTestLabel' , 2 )
145145 . 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 )
147147 } ,
148148
149149 'Changing current path #group3' : function ( browser : NightwatchBrowser ) {
@@ -218,11 +218,11 @@ module.exports = {
218218 . verify . attributeEquals ( '*[data-id="uiPathInput"]' , 'value' , 'tests' )
219219 . pause ( 2000 )
220220 . 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 )
226226 } ,
227227
228228 'Solidity Unit tests with hardhat console log #group4' : function ( browser : NightwatchBrowser ) {
0 commit comments