Skip to content

Commit

Permalink
Profiles: Fix ENS expanded state edit button (#3896)
Browse files Browse the repository at this point in the history
* Fix ENS expanded state edit button

* e2e

* fix e2e
  • Loading branch information
jxom authored and estebanmino committed Aug 5, 2022
1 parent dfb7e90 commit e32c675
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions e2e/registerENSFlow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions src/components/expanded-state/UniqueTokenExpandedState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ const UniqueTokenExpandedState = ({
)}`}
nftShadows
onPress={handlePressEdit}
// @ts-expect-error JavaScript component
testID="edit"
textColor={textColor}
weight="heavy"
/>
Expand Down
1 change: 0 additions & 1 deletion src/navigation/RegisterENSNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const renderTabBar = () => null;
const renderPager = (props: any) => (
<ScrollPagerWrapper
{...props}
initialScrollPosition={1}
{...(android && {
style: { height: Dimensions.get('window').height },
})}
Expand Down
1 change: 1 addition & 0 deletions src/screens/ENSAssignRecordsSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export function ENSAssignRecordsBottomActions({
as={Animated.View}
background="body"
style={[animatedStyle, { position: 'absolute', width: '100%' }]}
testID="ens-assign-records-sheet"
>
<AccentColorProvider color={accentColor}>
<Box paddingBottom="19px" style={{ height: bottomActionHeight }}>
Expand Down

0 comments on commit e32c675

Please sign in to comment.