Skip to content

Commit

Permalink
data-testid attribute for E2E tests - Portfolio cards & Fix for posit…
Browse files Browse the repository at this point in the history
…ion footer (#4041)
  • Loading branch information
juan-langa authored Oct 7, 2024
1 parent 6df6c2e commit 35345c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export const PortfolioPositionBlockDetail = ({ detail }: { detail: PositionDetai
}

return (
<Flex sx={{ flexDirection: 'column', justifyContent: 'flex-start', my: [3, 0] }}>
<Flex
sx={{ flexDirection: 'column', justifyContent: 'flex-start', my: [3, 0] }}
data-testid="portfolio-position-details"
>
<Box>
<Text
as="div"
Expand Down
1 change: 0 additions & 1 deletion components/sidebar/SidebarSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export function SidebarSection({
status={status}
requireConnection={requireConnection}
requiredChainHexId={requiredChainHexId}
data-testid="sidebar-footer"
/>
</Card>
)
Expand Down
1 change: 1 addition & 0 deletions components/sidebar/SidebarSectionFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export function SidebarSectionFooter({
p: '24px',
borderTop: 'lightMuted',
}}
data-testid="sidebar-footer"
>
{aboveButton}
<SidebarSectionFooterButton {...resolvedPrimaryButton} />
Expand Down

0 comments on commit 35345c0

Please sign in to comment.