.waitForElementContainsText('*[data-id="testTabSolidityUnitTestsOutput"]','SyntaxError: No visibility specified',120000)
.waitForElementContainsText('*[data-id="testTabSolidityUnitTestsOutput"]','SyntaxError: No visibility specified',120000)
.waitForElementContainsText('*[data-id="testTabTestsExecutionStoppedError"]','The test execution has been stopped because of error(s) in your test file',120000)
.waitForElementContainsText('*[data-id="testTabTestsExecutionStoppedError"]','The test execution has been stopped because of error(s) in your test file',120000)
'Use special functions receive/fallback - both are declared, failing sending data < 1 byte':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - both are declared, failing sending data < 1 byte #group1':function(browser: NightwatchBrowser){
// don't need to redeploy it, same contract
// don't need to redeploy it, same contract
browser.perform((done)=>{
browser.perform((done)=>{
browser.getAddressAtPosition(0,(address)=>{
browser.getAddressAtPosition(0,(address)=>{
@ -49,7 +50,7 @@ module.exports = {
})
})
})
})
},
},
'Use special functions receive/fallback - both are declared, failing sending data with odd number of digits':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - both are declared, failing sending data with odd number of digits #group1':function(browser: NightwatchBrowser){
// don't need to redeploy it, same contract
// don't need to redeploy it, same contract
browser.perform((done)=>{
browser.perform((done)=>{
browser.getAddressAtPosition(0,(address)=>{
browser.getAddressAtPosition(0,(address)=>{
@ -61,7 +62,7 @@ module.exports = {
})
})
})
})
},
},
'Use special functions receive/fallback - both are declared - receive called, sending wei':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - both are declared - receive called, sending wei #group1':function(browser: NightwatchBrowser){
// don't need to redeploy it, same contract
// don't need to redeploy it, same contract
browser.perform((done)=>{
browser.perform((done)=>{
browser.getAddressAtPosition(0,(address)=>{
browser.getAddressAtPosition(0,(address)=>{
@ -74,7 +75,7 @@ module.exports = {
})
})
})
})
},
},
'Use special functions receive/fallback - both are declared - fallback should fail cause not payable, sending data and wei':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - both are declared - fallback should fail cause not payable, sending data and wei #group1':function(browser: NightwatchBrowser){
// don't need to redeploy it, same contract
// don't need to redeploy it, same contract
browser.perform((done)=>{
browser.perform((done)=>{
browser.getAddressAtPosition(0,(address)=>{
browser.getAddressAtPosition(0,(address)=>{
@ -86,15 +87,15 @@ module.exports = {
})
})
})
})
},
},
'Use special functions receive/fallback - only receive is declared, sending wei':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - only receive is declared, sending wei #group2':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - only receive is declared, failing, fallback is not declared, sending data':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - only receive is declared, failing, fallback is not declared, sending data #group2':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - only fallback is diclared and is payable, sending data and wei':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - only fallback is diclared and is payable, sending data and wei #group3':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - only fallback is declared, fallback should fail cause not payable, sending wei':function(browser: NightwatchBrowser){
'Use special functions receive/fallback - only fallback is declared, fallback should fail cause not payable, sending wei #group4':function(browser: NightwatchBrowser){
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')// this account will be used for this test suite
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')// this account will be used for this test suite
@ -140,7 +141,7 @@ module.exports = {
.click('*[data-id="deployAndRunClearInstances"]')
.click('*[data-id="deployAndRunClearInstances"]')
},
},
'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal':function(browser: NightwatchBrowser){
'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal #group3':function(browser: NightwatchBrowser){
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')// this account will be used for this test suite
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')// this account will be used for this test suite
@ -161,8 +162,10 @@ module.exports = {
.click('*[data-id="deployAndRunClearInstances"]')
.click('*[data-id="deployAndRunClearInstances"]')
},
},
'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal , using London VM Fork':function(browser: NightwatchBrowser){
'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal , using London VM Fork #group3':function(browser: NightwatchBrowser){
browser
browser
.clickLaunchIcon('udapp')
.clearTransactions()
.click('*[data-id="settingsVMLondonMode"]')// switch to London fork
.click('*[data-id="settingsVMLondonMode"]')// 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
.journalLastChildIncludes('Debug the transaction to get more information.')
.journalLastChildIncludes('Debug the transaction to get more information.')
},
},
'Should Compile and Deploy a contract which define a custom error in a library, the error should be logged in the terminal':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){