diff --git a/commands/keplr.js b/commands/keplr.js index 4372aa918..29b6e5c15 100644 --- a/commands/keplr.js +++ b/commands/keplr.js @@ -69,7 +69,7 @@ const keplr = { async getExtensionDetails() { const keplrExtensionData = (await playwright.getExtensionsData()).keplr; - extensionId = keplrExtensionData.id; + extensionId = keplrExtensionData.id.trim(); extensionVersion = keplrExtensionData.version; registrationUrl = `chrome-extension://${extensionId}/register.html`; permissionsUrl = `chrome-extension://${extensionId}/popup.html#/setting/security/permission`; diff --git a/commands/playwright-keplr.js b/commands/playwright-keplr.js index fc5d03b38..581f7839b 100644 --- a/commands/playwright-keplr.js +++ b/commands/playwright-keplr.js @@ -149,7 +149,7 @@ module.exports = { } else if ( page .url() - .includes(`chrome-extension://${keplrExtensionData.id}/register.html`) + .includes(`chrome-extension://${keplrExtensionData.id.trim()}/register.html`) ) { keplrWindow = page; }