diff --git a/src/pages/Accounts/AccountDetailsView.tsx b/src/pages/Accounts/AccountDetailsView.tsx index 3b5d7d2c..b77c0c74 100644 --- a/src/pages/Accounts/AccountDetailsView.tsx +++ b/src/pages/Accounts/AccountDetailsView.tsx @@ -116,6 +116,7 @@ export const AccountDetailsView = () => { }} > history.replace('/accounts')} sx={{ padding: 0.25, @@ -134,6 +135,7 @@ export const AccountDetailsView = () => { {account.name} diff --git a/src/pages/Accounts/Accounts.tsx b/src/pages/Accounts/Accounts.tsx index c9b3862c..2d5ccb80 100644 --- a/src/pages/Accounts/Accounts.tsx +++ b/src/pages/Accounts/Accounts.tsx @@ -133,6 +133,7 @@ export function Accounts() { }, }} disableRipple + data-testid="accounts-back-btn" > @@ -151,7 +152,11 @@ export function Accounts() { gap: 2, }} > - + {t('Currently using {{walletName}}', { walletName: isPrimaryAccount(active) ? walletDetails?.name @@ -183,7 +188,11 @@ export function Accounts() { gap: 2, }} > - + {active?.name} diff --git a/src/pages/Accounts/components/AccountItem.tsx b/src/pages/Accounts/components/AccountItem.tsx index 815cc4e1..e47c3731 100644 --- a/src/pages/Accounts/components/AccountItem.tsx +++ b/src/pages/Accounts/components/AccountItem.tsx @@ -172,7 +172,7 @@ export const AccountItem = forwardRef( type: account.type, }); }, - [address, account.type, capture, network?.vmName, toast] + [address, account.type, capture, network?.vmName, toast], ); return ( @@ -348,8 +348,8 @@ const getCopyEventNameByNetworkType = (type: NetworkVMType) => { type === NetworkVMType.BITCOIN ? 'Btc' : type === NetworkVMType.EVM - ? 'Eth' - : type; + ? 'Eth' + : type; return `AccountSelector${normalizedType}AddressCopied`; }; diff --git a/src/pages/Accounts/components/AccountName.tsx b/src/pages/Accounts/components/AccountName.tsx index 0232da12..e69c1012 100644 --- a/src/pages/Accounts/components/AccountName.tsx +++ b/src/pages/Accounts/components/AccountName.tsx @@ -69,6 +69,7 @@ export default function AccountName({ e.stopPropagation(); promptRename(); }} + data-testid="rename-account-btn" > diff --git a/src/pages/Accounts/components/RenameDialog.tsx b/src/pages/Accounts/components/RenameDialog.tsx index 9b3c8226..d4804f05 100644 --- a/src/pages/Accounts/components/RenameDialog.tsx +++ b/src/pages/Accounts/components/RenameDialog.tsx @@ -61,6 +61,7 @@ export const RenameDialog = ({ ), }} {...keyboardShortcuts} + data-testid="rename-account-input" /> {walletDetails?.name ?? name} @@ -97,6 +98,7 @@ export default function WalletHeader({ sx={{ fontSize: 10, height: 16 }} color="success" label={t('Active')} + data-testid="wallet-active-chip" /> {/* Section for the imported accounts has no WalletDetails, therefore cannot be renamed */}