pull/5370/head
bunsenstraat 8 months ago
parent 04d5f1f872
commit 39f48f6440
  1. 8
      apps/remix-ide-e2e/src/tests/terminal.test.ts

@ -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')

Loading…
Cancel
Save