1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

F #5755: Add data-cy for hosts tests (#2020)

This commit is contained in:
Jorge Miguel Lobo Escalona 2022-05-11 13:21:00 +02:00 committed by GitHub
parent d311a95a8f
commit 0e03e3c8ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -26,7 +26,7 @@ const Row = ({ original, value, ...props }) => {
const { ID, NAME, HOSTS, DATASTORES, VNETS, PROVIDER_NAME } = value
return (
<div {...props}>
<div data-cy={`cluster-${ID}`} {...props}>
<div className={classes.main}>
<div className={classes.title}>
<Typography component="span">{NAME}</Typography>

View File

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