From 0e03e3c8ed975293be962b2ac87917eebc5997da Mon Sep 17 00:00:00 2001 From: Jorge Miguel Lobo Escalona Date: Wed, 11 May 2022 13:21:00 +0200 Subject: [PATCH] F #5755: Add data-cy for hosts tests (#2020) --- install.sh | 1 + src/fireedge/src/client/components/Tables/Clusters/row.js | 2 +- src/fireedge/src/client/components/Tables/Hosts/actions.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2b9e9da821..e4df647456 100755 --- a/install.sh +++ b/install.sh @@ -2900,6 +2900,7 @@ FIREEDGE_SUNSTONE_ETC="src/fireedge/etc/sunstone/sunstone-server.conf \ FIREEDGE_SUNSTONE_ETC_VIEW_ADMIN="src/fireedge/etc/sunstone/admin/vm-tab.yaml \ src/fireedge/etc/sunstone/admin/marketplace-app-tab.yaml \ + src/fireedge/etc/sunstone/admin/host-tab.yaml \ src/fireedge/etc/sunstone/admin/vm-template-tab.yaml" FIREEDGE_SUNSTONE_ETC_VIEW_USER="src/fireedge/etc/sunstone/user/vm-tab.yaml \ diff --git a/src/fireedge/src/client/components/Tables/Clusters/row.js b/src/fireedge/src/client/components/Tables/Clusters/row.js index 2d3775a7f9..f6517c450c 100644 --- a/src/fireedge/src/client/components/Tables/Clusters/row.js +++ b/src/fireedge/src/client/components/Tables/Clusters/row.js @@ -26,7 +26,7 @@ const Row = ({ original, value, ...props }) => { const { ID, NAME, HOSTS, DATASTORES, VNETS, PROVIDER_NAME } = value return ( -
+
{NAME} diff --git a/src/fireedge/src/client/components/Tables/Hosts/actions.js b/src/fireedge/src/client/components/Tables/Hosts/actions.js index 0af2008d39..fbb55d28d9 100644 --- a/src/fireedge/src/client/components/Tables/Hosts/actions.js +++ b/src/fireedge/src/client/components/Tables/Hosts/actions.js @@ -153,6 +153,7 @@ const Actions = () => { dialogProps: { title: T.Delete, children: MessageToConfirmAction, + dataCy: `modal-host-${HOST_ACTIONS.DELETE}`, }, onSubmit: (rows) => async () => { const ids = rows?.map?.(({ original }) => original?.ID)