diff --git a/apps/mobile/maestro/flows/hide-account.yaml b/apps/mobile/maestro/flows/hide-account.yaml index 1336c5baf..8acb14e59 100644 --- a/apps/mobile/maestro/flows/hide-account.yaml +++ b/apps/mobile/maestro/flows/hide-account.yaml @@ -14,11 +14,18 @@ appId: io.leather.mobilewallet id: 'walletListAccountCard' - tapOn: text: 'Hide account' +- assertVisible: 'Unhide account' - tapOn: id: 'backButton' - assertNotVisible: id: 'walletListAccountCard' - tapOn: text: 'Hidden accounts 1 hidden accounts' -- assertVisible: +- tapOn: id: 'walletListAccountCard' +- tapOn: Unhide account +- tapOn: + id: 'backButton' +- tapOn: + id: 'backButton' +- assertVisible: Hidden accounts 0 hidden accounts diff --git a/apps/mobile/src/app/(home)/settings/wallet/configure/[wallet]/[account]/index.tsx b/apps/mobile/src/app/(home)/settings/wallet/configure/[wallet]/[account]/index.tsx index 5640bd15d..e9125aa59 100644 --- a/apps/mobile/src/app/(home)/settings/wallet/configure/[wallet]/[account]/index.tsx +++ b/apps/mobile/src/app/(home)/settings/wallet/configure/[wallet]/[account]/index.tsx @@ -27,6 +27,7 @@ import { z } from 'zod'; import { Box, Eye1ClosedIcon, + Eye1Icon, HeadIcon, PassportIcon, SheetRef, @@ -124,14 +125,25 @@ function ConfigureAccount({ fingerprint, accountIndex, account }: ConfigureAccou }); }} /> - } - onPress={toggleHideAccount} - /> + {account.status === 'active' ? ( + } + onPress={toggleHideAccount} + /> + ) : ( + } + onPress={toggleHideAccount} + /> + )}