diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index 5e9b58d499..69bf897cf5 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/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) + }, }