Skip to content

Commit

Permalink
🩹Fix testid tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Sep 2, 2024
1 parent ec76a8e commit 28d526a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Swap/AdvancedSwapDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function AdvancedSwapDetails({
</BodySmall>
</TextWithLoadingPlaceholder>
</RowBetween>
<SwapPathComponent trade={trade} data-testid="swap__details__path" />
<SwapPathComponent trade={trade} />
{trade?.platform && (
<RowBetween>
<MouseoverTooltip title={'The platform where the swap will be made.'}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Swap/SwapPathComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function SwapPathComponent({ trade }: { trade: InterfaceTrade | undefined }) {

{(trade?.platform == PlatformType.ROUTER || trade?.platform == PlatformType.STELLAR_CLASSIC) && (
<PathLoadingPlaceholder syncing={pathTokensIsLoading} width={100}>
<PathBox>
<PathBox data-testid="swap__details__path">
{pathArray?.map((contract, index) => (
<React.Fragment key={index}>
{contract}
Expand All @@ -138,7 +138,7 @@ function SwapPathComponent({ trade }: { trade: InterfaceTrade | undefined }) {
)}
{(trade?.platform == PlatformType.AGGREGATOR) && (
<PathLoadingPlaceholder syncing={pathTokensIsLoading} width={200} >
<AggregatorPathBox>
<AggregatorPathBox data-testid="swap__details__path">
{distributionArray.map((distribution, index) => (
<Box key={index}>
<Row>
Expand Down

0 comments on commit 28d526a

Please sign in to comment.