diff --git a/src/fireedge/src/client/components/Cards/SnapshotCard.js b/src/fireedge/src/client/components/Cards/SnapshotCard.js index 1197fa3de1..a6c31d1a9a 100644 --- a/src/fireedge/src/client/components/Cards/SnapshotCard.js +++ b/src/fireedge/src/client/components/Cards/SnapshotCard.js @@ -32,15 +32,19 @@ const SnapshotCard = memo( const timeAgo = `created ${time.toRelative()}` return ( - +
- + {NAME}
- + {`#${SNAPSHOT_ID} ${timeAgo}`}
diff --git a/src/fireedge/src/client/components/Tabs/Vm/History/HistoryRecord.js b/src/fireedge/src/client/components/Tabs/Vm/History/HistoryRecord.js index 448e55243c..6916005133 100644 --- a/src/fireedge/src/client/components/Tabs/Vm/History/HistoryRecord.js +++ b/src/fireedge/src/client/components/Tabs/Vm/History/HistoryRecord.js @@ -85,10 +85,14 @@ const HistoryRecordCard = memo( }) return ( - +
- + {`#${SEQ} | #${HID} ${HOSTNAME} | ${Tr(T.Action)}: ${action}`}
diff --git a/src/fireedge/src/client/components/Tabs/Vm/History/index.js b/src/fireedge/src/client/components/Tabs/Vm/History/index.js index f9a16bf648..9081d18e72 100644 --- a/src/fireedge/src/client/components/Tabs/Vm/History/index.js +++ b/src/fireedge/src/client/components/Tabs/Vm/History/index.js @@ -49,7 +49,10 @@ const VmHistoryTab = ({ tabProps: { actions } = {}, id }) => { }, [vm]) return ( -
+
{records.map((history, idx) => ( ))} diff --git a/src/fireedge/src/client/components/Tabs/Vm/Info/capacity.js b/src/fireedge/src/client/components/Tabs/Vm/Info/capacity.js index 5e58273e3e..435bca5923 100644 --- a/src/fireedge/src/client/components/Tabs/Vm/Info/capacity.js +++ b/src/fireedge/src/client/components/Tabs/Vm/Info/capacity.js @@ -156,7 +156,10 @@ const PanelHeader = ({ vm = {}, actions = [] }) => { }} options={[ { - dialogProps: { title: T.ResizeCapacity }, + dialogProps: { + title: T.ResizeCapacity, + dataCy: 'modal-resize-capacity', + }, form: () => ResizeCapacityForm({ initialValues: vm.TEMPLATE }), onSubmit: handleResizeCapacity, }, diff --git a/src/fireedge/src/client/components/Tabs/Vm/Snapshot/Actions.js b/src/fireedge/src/client/components/Tabs/Vm/Snapshot/Actions.js index b7604d6eaf..80e5b49e85 100644 --- a/src/fireedge/src/client/components/Tabs/Vm/Snapshot/Actions.js +++ b/src/fireedge/src/client/components/Tabs/Vm/Snapshot/Actions.js @@ -45,7 +45,10 @@ const CreateAction = memo(({ vmId }) => { }} options={[ { - dialogProps: { title: T.TakeSnapshot }, + dialogProps: { + title: T.TakeSnapshot, + dataCy: 'modal-create-snapshot', + }, form: CreateSnapshotForm, onSubmit: handleCreate, }, @@ -79,6 +82,7 @@ const RevertAction = memo(({ vmId, snapshot }) => { values={`#${SNAPSHOT_ID} - ${NAME}`} /> ), + dataCy: 'modal-revert-snapshot', children:

{Tr(T.DoYouWantProceed)}

, }, onSubmit: handleRevert, @@ -113,6 +117,7 @@ const DeleteAction = memo(({ vmId, snapshot }) => { values={`#${SNAPSHOT_ID} - ${NAME}`} /> ), + dataCy: 'modal-delete-snapshot', children:

{Tr(T.DoYouWantProceed)}

, }, onSubmit: handleDelete, diff --git a/src/fireedge/src/client/components/Tabs/Vm/Snapshot/index.js b/src/fireedge/src/client/components/Tabs/Vm/Snapshot/index.js index 5a933f950d..dcc45b1ae2 100644 --- a/src/fireedge/src/client/components/Tabs/Vm/Snapshot/index.js +++ b/src/fireedge/src/client/components/Tabs/Vm/Snapshot/index.js @@ -63,7 +63,7 @@ const VmSnapshotTab = ({ tabProps: { actions } = {}, id }) => { )} - + {snapshots.map((snapshot) => ( { - const name = Actions.VM_SNAP_REVERT + const name = Actions.VM_SNAP_DELETE const command = { name, ...Commands[name] } return { params, command }