|
|
|
@ -2,6 +2,10 @@ |
|
|
|
|
import { NightwatchBrowser } from 'nightwatch' |
|
|
|
|
import init from '../helpers/init' |
|
|
|
|
|
|
|
|
|
const branch = process.env.CIRCLE_BRANCH; |
|
|
|
|
const isMasterBranch = branch === 'master'; |
|
|
|
|
const runMasterTests: boolean = (branch ? (isMasterBranch ? true : false) : true) |
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
|
'@disabled': true, |
|
|
|
|
before: function (browser: NightwatchBrowser, done: VoidFunction) { |
|
|
|
@ -209,6 +213,7 @@ module.exports = { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should run a script which log transaction and block using web3.js and ethers #group7': function (browser: NightwatchBrowser) { |
|
|
|
|
if (runMasterTests) |
|
|
|
|
browser |
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
|
.switchEnvironment('basic-http-provider') |
|
|
|
@ -291,6 +296,7 @@ module.exports = { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should connect to mainnet fork and run web3.eth.getCode in the terminal #group9': function (browser: NightwatchBrowser) { |
|
|
|
|
if (runMasterTests) |
|
|
|
|
browser |
|
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
|
.switchEnvironment('vm-mainnet-fork') |
|
|
|
@ -305,6 +311,7 @@ module.exports = { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should connect to the sepolia fork and run web3.eth.getCode in the terminal #group9': function (browser: NightwatchBrowser) { |
|
|
|
|
if (runMasterTests) |
|
|
|
|
browser |
|
|
|
|
.switchEnvironment('vm-custom-fork') |
|
|
|
|
.waitForElementVisible('[data-id="vm-custom-fork-modal-footer-ok-react"]') |
|
|
|
@ -354,6 +361,7 @@ module.exports = { |
|
|
|
|
console.log(resolver.addr(node)); |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
if (runMasterTests) { |
|
|
|
|
browser |
|
|
|
|
// .clickLaunchIcon('udapp')
|
|
|
|
|
.switchEnvironment('vm-mainnet-fork') |
|
|
|
@ -377,6 +385,7 @@ module.exports = { |
|
|
|
|
}) |
|
|
|
|
.useCss() |
|
|
|
|
.waitForElementContainsText('*[data-id="terminalJournal"]', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 120000) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should run free function which logs in the terminal #group10': function (browser: NightwatchBrowser) { |
|
|
|
|