From 76029502a48d627fc090f26165d059a1291eb02d Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Mon, 24 Jul 2023 14:28:35 -0500 Subject: [PATCH] Removes `data-testid`'s --- components/cart/modal.tsx | 12 ++++-------- components/grid/three-items.tsx | 5 +---- components/label.tsx | 4 +--- components/layout/navbar/mobile-menu.tsx | 14 ++------------ components/product/variant-selector.tsx | 1 - 5 files changed, 8 insertions(+), 28 deletions(-) diff --git a/components/cart/modal.tsx b/components/cart/modal.tsx index 2abf49b8e..0c20ede64 100644 --- a/components/cart/modal.tsx +++ b/components/cart/modal.tsx @@ -39,11 +39,11 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) { return ( <> - - +

My Cart

- @@ -98,7 +98,6 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) { return (
  • @@ -128,10 +127,7 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) { {item.merchandise.product.title} {item.merchandise.title !== DEFAULT_OPTION ? ( -

    +

    {item.merchandise.title}

    ) : null} diff --git a/components/grid/three-items.tsx b/components/grid/three-items.tsx index cea0488ad..04b73e8c2 100644 --- a/components/grid/three-items.tsx +++ b/components/grid/three-items.tsx @@ -38,10 +38,7 @@ export async function ThreeItemGrid() { const [firstProduct, secondProduct, thirdProduct] = homepageItems; return ( -
    +
    diff --git a/components/label.tsx b/components/label.tsx index 791609521..471fe7a25 100644 --- a/components/label.tsx +++ b/components/label.tsx @@ -19,9 +19,7 @@ const Label = ({ })} >
    -

    - {title} -

    +

    {title}

    - @@ -64,12 +59,7 @@ export default function MobileMenu({ menu }: { menu: Menu[] }) { >
    - diff --git a/components/product/variant-selector.tsx b/components/product/variant-selector.tsx index 52748ee68..3b2e8ac36 100644 --- a/components/product/variant-selector.tsx +++ b/components/product/variant-selector.tsx @@ -123,7 +123,6 @@ export function VariantSelector({ !isAvailableForSale } )} - data-testid={isActive ? 'selected-variant' : 'variant'} > {value}