From e32c675784afba55ed183dabdf76c110a79a2a81 Mon Sep 17 00:00:00 2001 From: "moxey.eth" Date: Fri, 5 Aug 2022 14:48:52 +1000 Subject: [PATCH] Profiles: Fix ENS expanded state edit button (#3896) * Fix ENS expanded state edit button * e2e * fix e2e --- e2e/registerENSFlow.spec.js | 6 ++++++ src/components/expanded-state/UniqueTokenExpandedState.tsx | 2 ++ src/navigation/RegisterENSNavigator.tsx | 1 - src/screens/ENSAssignRecordsSheet.tsx | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/e2e/registerENSFlow.spec.js b/e2e/registerENSFlow.spec.js index dcaddd1e62f..82706cf287f 100644 --- a/e2e/registerENSFlow.spec.js +++ b/e2e/registerENSFlow.spec.js @@ -294,6 +294,12 @@ describe('Register ENS Flow', () => { await Helpers.waitAndTap('wrapped-nft-rainbowtestwallet.eth'); }); + it('Should be able to navigate to the Edit screen', async () => { + await Helpers.waitAndTap('edit-action-button'); + await Helpers.checkIfVisible('ens-assign-records-sheet'); + await Helpers.swipe('ens-assign-records-sheet', 'down'); + }); + it('Should use rainbowtestwallet.eth as primary name', async () => { await Helpers.swipe('unique-token-expanded-state', 'up', 'slow'); await Helpers.waitAndTap('ens-reverse-record-switch'); diff --git a/src/components/expanded-state/UniqueTokenExpandedState.tsx b/src/components/expanded-state/UniqueTokenExpandedState.tsx index ad4eb3cf7f4..059a36c3f75 100644 --- a/src/components/expanded-state/UniqueTokenExpandedState.tsx +++ b/src/components/expanded-state/UniqueTokenExpandedState.tsx @@ -512,6 +512,8 @@ const UniqueTokenExpandedState = ({ )}`} nftShadows onPress={handlePressEdit} + // @ts-expect-error JavaScript component + testID="edit" textColor={textColor} weight="heavy" /> diff --git a/src/navigation/RegisterENSNavigator.tsx b/src/navigation/RegisterENSNavigator.tsx index ec330124ae3..c6248e0e33b 100644 --- a/src/navigation/RegisterENSNavigator.tsx +++ b/src/navigation/RegisterENSNavigator.tsx @@ -29,7 +29,6 @@ const renderTabBar = () => null; const renderPager = (props: any) => (