From c747292a31506379c5275f47323930443602b5c0 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Sun, 17 Oct 2021 12:50:12 +0200 Subject: [PATCH] handle undefined --- apps/remix-ide-e2e/src/commands/addLocalPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/commands/addLocalPlugin.ts b/apps/remix-ide-e2e/src/commands/addLocalPlugin.ts index 105c93e457..06f4b25cdc 100644 --- a/apps/remix-ide-e2e/src/commands/addLocalPlugin.ts +++ b/apps/remix-ide-e2e/src/commands/addLocalPlugin.ts @@ -33,7 +33,7 @@ function addLocalPlugin (browser: NightwatchBrowser, profile: Profile & Location .clearValue('*[data-id="localPluginName"]').setValue('*[data-id="localPluginName"]', profile.name) .clearValue('*[data-id="localPluginDisplayName"]').setValue('*[data-id="localPluginDisplayName"]', profile.displayName) .clearValue('*[data-id="localPluginUrl"]').setValue('*[data-id="localPluginUrl"]', profile.url) - .clearValue('*[data-id="localPluginCanActivate"]').setValue('*[data-id="localPluginCanActivate"]', profile.canActivate.join(',')) + .clearValue('*[data-id="localPluginCanActivate"]').setValue('*[data-id="localPluginCanActivate"]', profile.canActivate ? profile.canActivate.join(',') : '') .click('*[data-id="localPluginRadioButtoniframe"]') .click(profile.location === 'sidePanel' ? '*[data-id="localPluginRadioButtonsidePanel"]' : '*[data-id="localPluginRadioButtonmainPanel"]') .click('*[data-id="pluginManagerLocalPluginModalDialogModalDialogModalFooter-react"]')