diff --git a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts index 470e79bf39..6f4be87be1 100644 --- a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts +++ b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts @@ -18,10 +18,8 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') else { browser.click('button[id^="runAndDeployAtAdressButton"]') - .execute(function () { - const modal = document.querySelector('[data-id="fileSystem-modal-footer-ok-react"]') as HTMLElement - modal.click() - }) + .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') + .click('[data-id="udappNotify-modal-footer-ok-react"]') } callback() }) diff --git a/apps/remix-ide-e2e/src/commands/validateValueInput.ts b/apps/remix-ide-e2e/src/commands/validateValueInput.ts index 2ea3e403bf..dd7f653ad7 100644 --- a/apps/remix-ide-e2e/src/commands/validateValueInput.ts +++ b/apps/remix-ide-e2e/src/commands/validateValueInput.ts @@ -6,6 +6,7 @@ class ValidateValueInput extends EventEmitter { const browser = this.api browser.perform((done) => { browser.clearValue(selector) + .pause(2000) .setValue(selector, valueTosSet) .execute(function (selector) { const elem = document.querySelector(selector) as HTMLInputElement diff --git a/apps/remix-ide-e2e/src/tests/ballot.test.ts b/apps/remix-ide-e2e/src/tests/ballot.test.ts index 61ecbdee16..bb41a54029 100644 --- a/apps/remix-ide-e2e/src/tests/ballot.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot.test.ts @@ -84,8 +84,8 @@ module.exports = { .openFile('Untitled.sol') .clickLaunchIcon('udapp') .click('*[data-id="settingsWeb3Mode"]') - .waitForElementPresent('[data-id="fileSystem-modal-footer-ok-react"]') - .click('[data-id="fileSystem-modal-footer-ok-react"]') + .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') + .click('[data-id="udappNotify-modal-footer-ok-react"]') .pause(5000) .execute(function () { const env: any = document.getElementById('selectExEnvOptions') diff --git a/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts b/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts index 839841b51c..1b7f97d5b3 100644 --- a/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts @@ -79,8 +79,8 @@ module.exports = { .openFile('Untitled.sol') .clickLaunchIcon('udapp') .click('*[data-id="settingsWeb3Mode"]') - .waitForElementPresent('[data-id="fileSystem-modal-footer-ok-react"]') - .click('[data-id="fileSystem-modal-footer-ok-react"]') + .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') + .click('[data-id="udappNotify-modal-footer-ok-react"]') .clickLaunchIcon('solidity') .clickLaunchIcon('udapp') .pause(2000) diff --git a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts index 9e7d34196a..b4bfe814b7 100644 --- a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts +++ b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts @@ -36,16 +36,19 @@ module.exports = { .pause(2000) .click('*[data-id="settingsRemixRunSignMsg"]') .pause(2000) - .waitForElementVisible('*[data-id="modalDialogCustomPromptText"]', 120000) - .setValue('*[data-id="modalDialogCustomPromptText"]', 'Remix is cool!') + .waitForElementVisible('*[data-id="signMessageTextarea"]', 120000) + .click('*[data-id="signMessageTextarea"]') + .setValue('*[data-id="signMessageTextarea"]', 'Remix is cool!') .assert.elementNotPresent('*[data-id="settingsRemixRunSignMsgHash"]') .assert.elementNotPresent('*[data-id="settingsRemixRunSignMsgSignature"]') .pause(2000) - .modalFooterOKClick() - .waitForElementVisible('*[data-id="modalDialogContainer"]', 12000) + .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') + .click('[data-id="udappNotify-modal-footer-ok-react"]') + .waitForElementVisible('*[data-id="udappNotifyModalDialogModalBody-react"]', 12000) .assert.elementPresent('*[data-id="settingsRemixRunSignMsgHash"]') .assert.elementPresent('*[data-id="settingsRemixRunSignMsgSignature"]') - .modalFooterOKClick() + .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') + .click('[data-id="udappNotify-modal-footer-ok-react"]') }, 'Should deploy contract on JavascriptVM #group3': function (browser: NightwatchBrowser) { diff --git a/libs/remix-ui/run-tab/src/lib/actions/index.ts b/libs/remix-ui/run-tab/src/lib/actions/index.ts index 7c2500fbd0..0d36c6c16e 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/index.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/index.ts @@ -717,3 +717,7 @@ export const updateScenarioPath = (path: string) => { export const getFuncABIInputs = (funcABI: FuncABI) => { return plugin.blockchain.getInputs(funcABI) } + +export const setSendTransactionValue = (value: string) => { + dispatch(setSendValue(value)) +} diff --git a/libs/remix-ui/run-tab/src/lib/components/account.tsx b/libs/remix-ui/run-tab/src/lib/components/account.tsx index d0683c3711..9d34294026 100644 --- a/libs/remix-ui/run-tab/src/lib/components/account.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/account.tsx @@ -123,7 +123,7 @@ export function AccountUI (props: AccountProps) {