Merge pull request #1987 from ethereum/fix_toaster_provider_update

fix toaster when using plugin api to update provider
pull/1504/head^2
David Disu 3 years ago committed by GitHub
commit 81da09da3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      apps/remix-ide-e2e/src/tests/plugin_api.ts
  2. 2
      libs/remix-ui/run-tab/src/lib/run-tab.tsx

@ -149,6 +149,18 @@ module.exports = {
await clickAndCheckLog(browser, 'udapp:getAccounts', '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', null, null) 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 // context menu item
'Should create context menu item #group1': async function (browser: NightwatchBrowser) { 'Should create context menu item #group1': async function (browser: NightwatchBrowser) {

@ -205,7 +205,7 @@ export function RunTabUI (props: RunTabProps) {
{from} {from}
<span className="font-weight-bold text-warning"> <span className="font-weight-bold text-warning">
is changing your environment to is changing your environment to
</span> {env} </span> {env && env.context}
</span> </span>
</div> </div>
) )

Loading…
Cancel
Save