diff --git a/apps/remix-ide-e2e/src/tests/plugin_api.ts b/apps/remix-ide-e2e/src/tests/plugin_api.ts index d3df343415..fc09a9c8f1 100644 --- a/apps/remix-ide-e2e/src/tests/plugin_api.ts +++ b/apps/remix-ide-e2e/src/tests/plugin_api.ts @@ -149,6 +149,18 @@ module.exports = { await clickAndCheckLog(browser, 'udapp:getAccounts', '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', null, null) }, + 'Should select another provider #group1': async function (browser: NightwatchBrowser) { + await clickAndCheckLog(browser, 'udapp:setEnvironmentMode', null, null, { context: 'vm', fork: 'berlin' }) + await browser + .frameParent() + .useCss() + .clickLaunchIcon('udapp') + .waitForElementContainsText('#selectExEnvOptions option:checked', 'JavaScript VM (Berlin)') + .clickLaunchIcon('localPlugin') + .useXpath() + // @ts-ignore + .frame(0) + }, // context menu item 'Should create context menu item #group1': async function (browser: NightwatchBrowser) { diff --git a/libs/remix-ui/run-tab/src/lib/run-tab.tsx b/libs/remix-ui/run-tab/src/lib/run-tab.tsx index 3dc10d1e52..8cf8615b09 100644 --- a/libs/remix-ui/run-tab/src/lib/run-tab.tsx +++ b/libs/remix-ui/run-tab/src/lib/run-tab.tsx @@ -205,7 +205,7 @@ export function RunTabUI (props: RunTabProps) { {from} is changing your environment to - {env} + {env && env.context} )