From 253161c0c1069436c6f486fe43cbf7ffa5af6bb7 Mon Sep 17 00:00:00 2001 From: Rafael Klynger Date: Thu, 24 Oct 2019 15:11:36 -0300 Subject: [PATCH] Add data-testid to make it easier to test the component --- CHANGELOG.md | 4 +++- .../ProductSummaryBuyButton/ProductSummaryBuyButton.js | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30da08f0..fb2a5be2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Add `data-testid` to `ProductSummaryBuyButton` to make it easier to test the component. ## [2.42.0] - 2019-10-24 ### Added -- Allow `product-teaser.summary` on `product-summary-column` +- Allow `product-teaser.summary` on `product-summary-column`. ## [2.41.0] - 2019-10-23 ### Changed diff --git a/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js b/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js index 08d66901..e70b4a65 100644 --- a/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js +++ b/react/components/ProductSummaryBuyButton/ProductSummaryBuyButton.js @@ -80,7 +80,10 @@ const ProductSummaryBuyButton = ({ return ( showBuyButton && ( -
+