@ -15,7 +15,7 @@ module.exports = {
browser . testContracts ( 'Untitled.sol' , sources [ 0 ] [ 'Untitled.sol' ] , [ 'TestContract' ] )
browser . testContracts ( 'Untitled.sol' , sources [ 0 ] [ 'Untitled.sol' ] , [ 'TestContract' ] )
. clickLaunchIcon ( 'udapp' )
. clickLaunchIcon ( 'udapp' )
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 0 )
. clickInstance ( 0 )
. clickFunction ( 'f - transact (not payable)' )
. clickFunction ( 'f - transact (not payable)' )
. testFunction ( 'last' ,
. testFunction ( 'last' ,
@ -40,7 +40,7 @@ module.exports = {
'Test Complex Return Values #group1' : function ( browser : NightwatchBrowser ) {
'Test Complex Return Values #group1' : function ( browser : NightwatchBrowser ) {
browser . testContracts ( 'returnValues.sol' , sources [ 1 ] [ 'returnValues.sol' ] , [ 'testReturnValues' ] )
browser . testContracts ( 'returnValues.sol' , sources [ 1 ] [ 'returnValues.sol' ] , [ 'testReturnValues' ] )
. clickLaunchIcon ( 'udapp' )
. clickLaunchIcon ( 'udapp' )
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 0 )
. clickInstance ( 0 )
. clickFunction ( 'retunValues1 - transact (not payable)' )
. clickFunction ( 'retunValues1 - transact (not payable)' )
. testFunction ( 'last' ,
. testFunction ( 'last' ,
@ -84,7 +84,7 @@ module.exports = {
'Test Complex Input Values #group2' : function ( browser : NightwatchBrowser ) {
'Test Complex Input Values #group2' : function ( browser : NightwatchBrowser ) {
browser . testContracts ( 'inputValues.sol' , sources [ 2 ] [ 'inputValues.sol' ] , [ 'test' ] )
browser . testContracts ( 'inputValues.sol' , sources [ 2 ] [ 'inputValues.sol' ] , [ 'test' ] )
. clickLaunchIcon ( 'udapp' )
. clickLaunchIcon ( 'udapp' )
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 0 )
. clickInstance ( 0 )
. clickFunction ( 'inputValue1 - transact (not payable)' , { types : 'uint256 _u, int256 _i, string _str' , values : '"2343242", "-4324324", "string _ string _ string _ string _ string _ string _ string _ string _ string _ string _"' } )
. clickFunction ( 'inputValue1 - transact (not payable)' , { types : 'uint256 _u, int256 _i, string _str' , values : '"2343242", "-4324324", "string _ string _ string _ string _ string _ string _ string _ string _ string _ string _"' } )
. testFunction ( 'last' ,
. testFunction ( 'last' ,
@ -129,7 +129,7 @@ module.exports = {
browser . testContracts ( 'eventFunctionInput.sol' , sources [ 3 ] [ 'eventFunctionInput.sol' ] , [ 'C' ] )
browser . testContracts ( 'eventFunctionInput.sol' , sources [ 3 ] [ 'eventFunctionInput.sol' ] , [ 'C' ] )
. clickLaunchIcon ( 'udapp' )
. clickLaunchIcon ( 'udapp' )
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 0 )
. clickInstance ( 0 )
. click ( '*[data-id="deployAndRunClearInstances"]' )
. click ( '*[data-id="deployAndRunClearInstances"]' )
} ,
} ,
@ -137,7 +137,7 @@ module.exports = {
'Should use scientific notation as parameters #group2' : function ( browser : NightwatchBrowser ) {
'Should use scientific notation as parameters #group2' : function ( browser : NightwatchBrowser ) {
browser . testContracts ( 'scientific_notation.sol' , sources [ 8 ] [ 'scientific_notation.sol' ] , [ 'test' ] )
browser . testContracts ( 'scientific_notation.sol' , sources [ 8 ] [ 'scientific_notation.sol' ] , [ 'test' ] )
. clickLaunchIcon ( 'udapp' )
. clickLaunchIcon ( 'udapp' )
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 0 )
. clickInstance ( 0 )
. clickFunction ( 'inputValue1 - transact (not payable)' , { types : 'uint256 _u, int256 _i' , values : '"101e3", "-1.13e4"' } )
. clickFunction ( 'inputValue1 - transact (not payable)' , { types : 'uint256 _u, int256 _i' , values : '"101e3", "-1.13e4"' } )
. waitForElementContainsText ( '*[data-id="terminalJournal"]' , '101000' , 60000 )
. waitForElementContainsText ( '*[data-id="terminalJournal"]' , '101000' , 60000 )
@ -154,7 +154,7 @@ module.exports = {
browser . testContracts ( 'customError.sol' , sources [ 4 ] [ 'customError.sol' ] , [ 'C' ] )
browser . testContracts ( 'customError.sol' , sources [ 4 ] [ 'customError.sol' ] , [ 'C' ] )
. clickLaunchIcon ( 'udapp' )
. clickLaunchIcon ( 'udapp' )
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 0 )
. clickInstance ( 0 )
. clickFunction ( 'g - transact (not payable)' )
. clickFunction ( 'g - transact (not payable)' )
. journalLastChildIncludes ( 'Error provided by the contract:' )
. journalLastChildIncludes ( 'Error provided by the contract:' )
@ -176,7 +176,7 @@ module.exports = {
. clearTransactions ( )
. clearTransactions ( )
. switchEnvironment ( 'vm-london' ) // switch to London fork
. switchEnvironment ( 'vm-london' ) // switch to London fork
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 0 )
. clickInstance ( 0 )
. clickFunction ( 'g - transact (not payable)' )
. clickFunction ( 'g - transact (not payable)' )
. journalLastChildIncludes ( 'Error provided by the contract:' )
. journalLastChildIncludes ( 'Error provided by the contract:' )
@ -194,7 +194,7 @@ module.exports = {
'Should Compile and Deploy a contract which define a custom error in a library, the error should be logged in the terminal #group3' : function ( browser : NightwatchBrowser ) {
'Should Compile and Deploy a contract which define a custom error in a library, the error should be logged in the terminal #group3' : function ( browser : NightwatchBrowser ) {
browser . testContracts ( 'customErrorLib.sol' , sources [ 5 ] [ 'customErrorLib.sol' ] , [ 'D' ] )
browser . testContracts ( 'customErrorLib.sol' , sources [ 5 ] [ 'customErrorLib.sol' ] , [ 'D' ] )
. clickLaunchIcon ( 'udapp' )
. clickLaunchIcon ( 'udapp' )
. click ( '.udapp_contractActionsContainerSingle > button ' )
. click ( '.udapp_contractActionsContainerSingle > div ' )
. clickInstance ( 1 )
. clickInstance ( 1 )
. clickFunction ( 'h - transact (not payable)' )
. clickFunction ( 'h - transact (not payable)' )
. journalLastChildIncludes ( 'Error provided by the contract:' )
. journalLastChildIncludes ( 'Error provided by the contract:' )