updated search results test and added data-test attributes

This commit is contained in:
[The-Noble-K] 2022-08-07 15:34:49 -04:00
parent 5615666b5d
commit cccb7bdd49

View File

@ -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>