diff --git a/apps/remix-ide-e2e/src/commands/clickFunction.ts b/apps/remix-ide-e2e/src/commands/clickFunction.ts index 9ae4b3c330..f437108892 100644 --- a/apps/remix-ide-e2e/src/commands/clickFunction.ts +++ b/apps/remix-ide-e2e/src/commands/clickFunction.ts @@ -1,20 +1,37 @@ -import { NightwatchBrowser, NightwatchClickFunctionExpectedInput } from 'nightwatch' +import { + NightwatchBrowser, + NightwatchClickFunctionExpectedInput +} from 'nightwatch' import EventEmitter from 'events' class ClickFunction extends EventEmitter { - command (this: NightwatchBrowser, fnFullName: string, expectedInput?: NightwatchClickFunctionExpectedInput): NightwatchBrowser { - this.api.waitForElementPresent('.instance button[data-title="' + fnFullName + '"]') + command( + this: NightwatchBrowser, + fnFullName: string, + expectedInput?: NightwatchClickFunctionExpectedInput + ): NightwatchBrowser { + this.api + .waitForElementPresent('.instance *[data-title="' + fnFullName + '"]') .perform(function (client, done) { - client.execute(function () { - document.querySelector('#runTabView').scrollTop = document.querySelector('#runTabView').scrollHeight - }, [], function () { - if (expectedInput) { - client.setValue('#runTabView input[data-title="' + expectedInput.types + '"]', expectedInput.values, _ => _) + client.execute( + function () { + document.querySelector('#runTabView').scrollTop = + document.querySelector('#runTabView').scrollHeight + }, + [], + function () { + if (expectedInput) { + client.setValue( + '#runTabView input[data-title="' + expectedInput.types + '"]', + expectedInput.values, + (_) => _ + ) + } + done() } - done() - }) + ) }) - .scrollAndClick('.instance button[data-title="' + fnFullName + '"]') + .scrollAndClick('.instance *[data-title="' + fnFullName + '"]') .pause(2000) .perform(() => { this.emit('complete') diff --git a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx index af242d57d9..60007f85c2 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -323,7 +323,7 @@ export function ContractGUI(props: ContractGUIProps) { setProxyAddress(address) } - console.log({dataId: buttonOptions.dataId}) + return (