add test running free function

pull/5370/head
yann300 2 years ago committed by Aniket
parent e8f156f07b
commit f2e8d15045
  1. 11
      apps/remix-ide-e2e/src/tests/terminal.test.ts

@ -317,6 +317,17 @@ module.exports = {
.executeScriptInTerminal(`web3.eth.getCode('0x75F509A4eDA030470272DfBAf99A47D587E76709')`) // sepolia contract .executeScriptInTerminal(`web3.eth.getCode('0x75F509A4eDA030470272DfBAf99A47D587E76709')`) // sepolia contract
.waitForElementContainsText('*[data-id="terminalJournal"]', byteCodeInSepolia, 120000) .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