Skip to content

Commit 4316cec

Browse files
committed
fix toaster when using plugin api to update provider
1 parent adbb7a5 commit 4316cec

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

apps/remix-ide-e2e/src/tests/plugin_api.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ module.exports = {
149149
await clickAndCheckLog(browser, 'udapp:getAccounts', '0x5B38Da6a701c568545dCfcB03FcB875f56beddC4', null, null)
150150
},
151151

152+
'Should select another provider #group1': async function (browser: NightwatchBrowser) {
153+
await clickAndCheckLog(browser, 'udapp:setEnvironmentMode', null, null, { context: 'vm', fork: 'berlin' })
154+
await browser
155+
.frameParent()
156+
.useCss()
157+
.clickLaunchIcon('udapp')
158+
.waitForElementContainsText('#selectExEnvOptions option:checked', 'JavaScript VM (Berlin)')
159+
.clickLaunchIcon('localPlugin')
160+
.useXpath()
161+
// @ts-ignore
162+
.frame(0)
163+
},
152164
// context menu item
153165

154166
'Should create context menu item #group1': async function (browser: NightwatchBrowser) {

libs/remix-ui/run-tab/src/lib/run-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function RunTabUI (props: RunTabProps) {
205205
{from}
206206
<span className="font-weight-bold text-warning">
207207
is changing your environment to
208-
</span> {env}
208+
</span> {env && env.context}
209209
</span>
210210
</div>
211211
)

0 commit comments

Comments
 (0)