diff --git a/package.json b/package.json index e4cd4bd6f..8d165eb18 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "blockchain:contracts:synpress": "node --experimental-modules ./tests/e2e/setup-contracts.mjs", "blockchain:contracts:testcafe": "node --experimental-modules ./src/test/setup-contracts-testcafe.mjs", "build": "run-s build:sitemap check-types build:css build:app", - "build:dev": "cross-env NODE_ENV=development npm run build", + "build:dev": "cross-env NODE_ENV=production npm run build", "build:test": "cross-env NODE_ENV=test NET=local npm run build", "build:prod": "cross-env NODE_ENV=production NET=mainnet npm run build", "build:css": "postcss src/tailwind.css -o src/index.css", diff --git a/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.test.tsx b/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.test.tsx index 1efd7613b..8de9265c9 100644 --- a/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.test.tsx +++ b/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.test.tsx @@ -29,6 +29,16 @@ const defaultProps = { describe("ActionSelectionForm", () => { it("should display the non-editable beneficiary & holder", async () => { + await act(async () => { + const container = render(); + const activeWalletComponent = container.getByTestId("activeWallet"); + const holderText = within(activeWalletComponent).getByText("0xa61B056dA0084a5f391EC137583073096880C2e3"); + expect(activeWalletComponent).not.toBeNull(); + expect(holderText).not.toBeNull(); + }); + }); + + it("should display the active wallet", async () => { await act(async () => { const container = render(); const beneficiaryComponent = container.getByTestId("asset-title-owner"); diff --git a/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.tsx b/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.tsx index 97f4c5389..f47934b81 100644 --- a/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.tsx +++ b/src/components/AssetManagementPanel/AssetManagementForm/FormVariants/ActionSelectionForm/ActionSelectionForm.tsx @@ -98,10 +98,9 @@ export const ActionSelectionForm: FunctionComponent = const handleConnectWallet = async () => { try { - console.log("before connect to wallet 123"); await onConnectToWallet(); } catch (error: any) { - console.log("handle connect wallet error catch"); + console.error(error); handleMetamaskError(error.message, error.code); } }; @@ -151,6 +150,7 @@ export const ActionSelectionForm: FunctionComponent = {account ? (
Wallet Icon