From 15c286f1913fdec55b75f5f115c4271856695403 Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran <120017870+JeevaRamu0104@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:57:52 +0530 Subject: [PATCH] fix: cypress test (#486) --- src/components/ACLDiv.res | 10 +++-- src/components/ACLDiv.resi | 1 + src/screens/Processors/ProcessorCards.res | 46 +++++++++++------------ 3 files changed, 31 insertions(+), 26 deletions(-) diff --git a/src/components/ACLDiv.res b/src/components/ACLDiv.res index 0606985cc..7be041859 100644 --- a/src/components/ACLDiv.res +++ b/src/components/ACLDiv.res @@ -11,6 +11,7 @@ let make = ( ~contentAlign=?, ~justifyClass=?, ~tooltipForWidthClass=?, + ~dataAttrStr=?, ) => { ()}}> - {children} - } + toolTipFor={Option.getOr("")->String.toLowerCase)]> +
()}}> + {children} +
+
} toolTipPosition={Top} /> } diff --git a/src/components/ACLDiv.resi b/src/components/ACLDiv.resi index 4e1088798..645bf6c8a 100644 --- a/src/components/ACLDiv.resi +++ b/src/components/ACLDiv.resi @@ -11,4 +11,5 @@ let make: ( ~contentAlign: ToolTip.contentPosition=?, ~justifyClass: string=?, ~tooltipForWidthClass: string=?, + ~dataAttrStr: string=?, ) => React.element diff --git a/src/screens/Processors/ProcessorCards.res b/src/screens/Processors/ProcessorCards.res index d811744f3..923127a39 100644 --- a/src/screens/Processors/ProcessorCards.res +++ b/src/screens/Processors/ProcessorCards.res @@ -108,30 +108,30 @@ let make = ( let connectorName = connector->getConnectorNameString let connectorInfo = connector->getConnectorInfo let size = "w-14 h-14 rounded-sm" - String.toLowerCase)]> - handleClick(connectorName)} - key={i->string_of_int} - className="border p-6 gap-4 bg-white rounded flex flex-col justify-between"> -
- String.toUpperCase} className=size /> -

- {connectorName->getDisplayNameForConnector->React.string} -

-
-

- {connectorInfo.description->React.string} + + handleClick(connectorName)} + key={i->string_of_int} + className="border p-6 gap-4 bg-white rounded flex flex-col justify-between" + dataAttrStr=connectorName> +

+ String.toUpperCase} className=size /> +

+ {connectorName->getDisplayNameForConnector->React.string}

- - - +
+

+ {connectorInfo.description->React.string} +

+ +
}) ->React.array}