add test running free function

pull/3549/head
yann300 2 years ago committed by Aniket
parent 746296aa66
commit 45957102dd
  1. 11
      apps/remix-ide-e2e/src/tests/terminal.test.ts

@ -317,6 +317,17 @@ module.exports = {
.executeScriptInTerminal(`web3.eth.getCode('0x75F509A4eDA030470272DfBAf99A47D587E76709')`) // sepolia contract
.waitForElementContainsText('*[data-id="terminalJournal"]', byteCodeInSepolia, 120000)
},
'Should run free function which logs in the terminal #group10': function (browser: NightwatchBrowser) {
const script = `
function run () public {
console.log("test running free function");
} `
browser
.addFile('test.script.sol', {content: script })
.click('*[data-id="play-editor"]') // run the script
.waitForElementContainsText('*[data-id="terminalJournal"]', 'test running free function', 120000)
},
}

Loading…
Cancel
Save