diff --git a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/context/configurationSection.js b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/context/configurationSection.js index ace6f06dc3..fa15690506 100644 --- a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/context/configurationSection.js +++ b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/context/configurationSection.js @@ -62,7 +62,11 @@ const ConfigurationSection = () => { id={EXTRA_ID} /> - diff --git a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/inputOutput/inputsSection.js b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/inputOutput/inputsSection.js index 981d04020f..83a7cd0e7d 100644 --- a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/inputOutput/inputsSection.js +++ b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/inputOutput/inputsSection.js @@ -78,6 +78,7 @@ const InputsSection = ({ fields }) => { color="secondary" startIcon={} sx={{ mt: '1em' }} + data-cy={`${EXTRA_ID}-add-io-inputs`} > diff --git a/src/fireedge/src/client/components/Tabs/VmTemplate/Info/information.js b/src/fireedge/src/client/components/Tabs/VmTemplate/Info/information.js index 7ad341eb11..c4ee06e863 100644 --- a/src/fireedge/src/client/components/Tabs/VmTemplate/Info/information.js +++ b/src/fireedge/src/client/components/Tabs/VmTemplate/Info/information.js @@ -25,20 +25,23 @@ const InformationPanel = ({ template = {}, handleRename, actions }) => { const { ID, NAME, REGTIME, LOCK } = template const info = [ - { name: T.ID, value: ID }, + { name: T.ID, value: ID, dataCy: 'id' }, { name: T.Name, value: NAME, canEdit: actions?.includes?.(VM_TEMPLATE_ACTIONS.RENAME), handleEdit: handleRename, + dataCy: 'name', }, { name: T.StartTime, value: Helper.timeToString(REGTIME), + dataCy: 'starttime', }, { name: T.Locked, value: Helper.levelLockToString(LOCK?.LOCKED), + dataCy: 'locked', }, ] diff --git a/src/fireedge/src/client/components/Tabs/VmTemplate/index.js b/src/fireedge/src/client/components/Tabs/VmTemplate/index.js index bfe5e4d91c..2268493237 100644 --- a/src/fireedge/src/client/components/Tabs/VmTemplate/index.js +++ b/src/fireedge/src/client/components/Tabs/VmTemplate/index.js @@ -61,6 +61,7 @@ const VmTemplateTabs = memo(({ id }) => { return ( TabContent && { name: camelName, + id: tabName, renderContent: (props) => TabContent({ ...props, tabProps }), } )