From 5bc74eeaf9188b0058dd783a776fc25eff7b780e Mon Sep 17 00:00:00 2001 From: Zhamilya Abikenova Date: Fri, 13 Oct 2023 18:43:26 +0200 Subject: [PATCH] fix(Ouia): Add OUIA ids for custom staleness buttons (#2061) Co-authored-by: Adonis Puente <60629070+adonispuente@users.noreply.github.com> --- src/components/InventoryHostStaleness/HostStalenessCard.js | 1 + src/components/InventoryHostStaleness/TabCard.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/InventoryHostStaleness/HostStalenessCard.js b/src/components/InventoryHostStaleness/HostStalenessCard.js index 9b1fb6abd..0af33e956 100644 --- a/src/components/InventoryHostStaleness/HostStalenessCard.js +++ b/src/components/InventoryHostStaleness/HostStalenessCard.js @@ -200,6 +200,7 @@ const HostStalenessCard = ({ canModifyHostStaleness }) => { onClick={() => { setIsEditing(!isEditing); }} + ouiaId="edit-staleness-setting" > Edit diff --git a/src/components/InventoryHostStaleness/TabCard.js b/src/components/InventoryHostStaleness/TabCard.js index a4330987c..8cf74ca81 100644 --- a/src/components/InventoryHostStaleness/TabCard.js +++ b/src/components/InventoryHostStaleness/TabCard.js @@ -69,6 +69,7 @@ const TabCard = ({ role="button" onClick={() => resetToStandard(activeTabKey)} style={{ padding: '0' }} + ouiaId="reset-to-default" > Reset to default setting