diff --git a/src/Components/Cluster/Cluster.cy.js b/src/Components/Cluster/Cluster.cy.js index f5b202d3..017b1af3 100644 --- a/src/Components/Cluster/Cluster.cy.js +++ b/src/Components/Cluster/Cluster.cy.js @@ -15,7 +15,7 @@ import { import { TAB_BUTTON } from '@redhat-cloud-services/frontend-components-utilities'; // selectors -const CLUSTER_HEADER = '#cluster-header'; +const CLUSTER_HEADER = '#cluster-header-title'; const BREADCRUMBS = 'nav[class=pf-v5-c-breadcrumb]'; const RULES_TABLE = '#cluster-recs-list-table'; const FILTER_CHIPS = 'li[class=pf-v5-c-chip-group__list-item]'; diff --git a/src/Components/ClusterHeader/ClusterHeader.js b/src/Components/ClusterHeader/ClusterHeader.js index f1facb78..fb8d092d 100644 --- a/src/Components/ClusterHeader/ClusterHeader.js +++ b/src/Components/ClusterHeader/ClusterHeader.js @@ -6,8 +6,8 @@ import { Dropdown, DropdownItem, DropdownList, - Grid, - GridItem, + Flex, + FlexItem, MenuToggle, Stack, StackItem, @@ -50,65 +50,65 @@ export const ClusterHeader = ({ clusterId, clusterData, clusterInfo }) => { ]; return ( - - - - {isUninitializedInfo || isFetchingInfo ? ( - <Skeleton size="sm" /> - ) : ( - info?.display_name || clusterId - )} - - - - setIsOpen(isOpen)} - autoFocus={false} - isOpen={isOpen} - toggle={(toggleRef) => ( - setIsOpen(!isOpen)} - > - {intl.formatMessage(messages.dropDownActionSingleCluster)} - - )} - > - {dropDownItems} - - - - - - UUID: {clusterId} - - - {intl.formatMessage(messages.lastSeen)}: - - {isUninitializedCluster || isFetchingCluster ? ( - - ) : cluster?.report?.meta?.last_checked_at ? ( - - ) : ( - intl.formatMessage(messages.unknown) - )} - - - - - + + + + + {isUninitializedInfo || isFetchingInfo ? ( + <Skeleton size="sm" /> + ) : ( + info?.display_name || clusterId + )} + + + + setIsOpen(isOpen)} + autoFocus={false} + isOpen={isOpen} + toggle={(toggleRef) => ( + setIsOpen(!isOpen)} + > + {intl.formatMessage(messages.dropDownActionSingleCluster)} + + )} + > + {dropDownItems} + + + + + + UUID: {clusterId} + + + {intl.formatMessage(messages.lastSeen)}: + + {isUninitializedCluster || isFetchingCluster ? ( + + ) : cluster?.report?.meta?.last_checked_at ? ( + + ) : ( + intl.formatMessage(messages.unknown) + )} + + + + ); };