From b9c18e3da8e303093678fa0ea1c5eb6a1abdaee7 Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Fri, 15 Nov 2024 15:19:37 +0500 Subject: [PATCH] fix: remove whitespaces around extension id --- commands/keplr.js | 2 +- commands/playwright-keplr.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; } diff --git a/package.json b/package.json index 38134df40..08206f79f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agoric/synpress", - "version": "3.8.2", + "version": "3.8.3-beta.2", "description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.", "keywords": [ "Synpress",