mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
updated search results test and added data-test attributes
This commit is contained in:
parent
5615666b5d
commit
cccb7bdd49
@ -71,11 +71,11 @@ const ProductCard: FC<Props> = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!noNameTag && (
|
{!noNameTag && (
|
||||||
<div className={s.header}>
|
<div className={s.header} data-test="product-card">
|
||||||
<h3 className={s.name}>
|
<h3 className={s.name}>
|
||||||
<span>{product.name}</span>
|
<span data-test="product-name">{product.name}</span>
|
||||||
</h3>
|
</h3>
|
||||||
<div className={s.price}>
|
<div className={s.price} data-test="product-price">
|
||||||
{`${price} ${product.price?.currencyCode}`}
|
{`${price} ${product.price?.currencyCode}`}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user