Skip to content

Commit

Permalink
fix: add data-testid to pricing card elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehenson committed Oct 15, 2024
1 parent f8584fc commit ebedb49
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/Pricing/PricingCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ const PricingCards = ({
};

return (
<div className="@container flex justify-center">
<div
className="@container flex justify-center"
data-testid={
delimiter ? "delimited-pricing-card-group" : "pricing-card-group"
}
>
<div
className={`${delimiter ? gridRules.delimited : gridRules.nonDelimited} gap-8`}
>
Expand All @@ -91,6 +96,9 @@ const PricingCards = ({
{delimiterColumn(index)}
<div
className={`relative border ${t(borderClasses(border?.color)?.border ?? "border-neutral-1100")} ${border?.style ?? ""} flex-1 px-24 py-32 flex flex-col gap-24 rounded-2xl group ${delimiter ? "@[520px]:flex-row @[920px]:flex-col" : ""} min-w-[272px] backdrop-blur`}
data-testid={
delimiter ? "delimited-pricing-card" : "pricing-card"
}
>
{border ? (
<div
Expand Down

0 comments on commit ebedb49

Please sign in to comment.