webpack/scenes/AlternateContentSources/MainTable/ACSTable.js in katello-4.7.6 vs webpack/scenes/AlternateContentSources/MainTable/ACSTable.js in katello-4.8.0.rc1
- old
+ new
@@ -160,11 +160,11 @@
return (
<DrawerPanelContent defaultSize="35%">
<DrawerHead>
{results && isExpanded &&
<div ref={drawerRef}>
- <Text component={TextVariants.h1} style={{ marginTop: '0px', fontWeight: 'bold' }}>
+ <Text ouiaId="acs-name-text" component={TextVariants.h1} style={{ marginTop: '0px', fontWeight: 'bold' }}>
{acs?.name}
</Text>
<TextContent>
<TextList style={{ marginBottom: '0px' }} component={TextListVariants.dl}>
<TextListItem component={TextListItemVariants.dt} style={{ fontWeight: 'normal' }}>
@@ -318,15 +318,17 @@
error,
status,
fetchItems,
showPrimaryAction,
primaryActionButton,
+ selectedCount,
}}
ouiaId="alternate-content-sources-table"
variant={TableVariant.compact}
additionalListeners={[activeSortColumn, activeSortDirection]}
- autocompleteEndpoint="/alternate_content_sources/auto_complete_search"
+ autocompleteEndpoint="/katello/api/v2/alternate_content_sources"
+ bookmarkController="katello_alternate_content_sources"
{...selectionSetVars}
actionButtons={
<>
{renderActionButtons && canCreate &&
<Button
@@ -382,11 +384,11 @@
}
displaySelectAllCheckbox={renderActionButtons}
hideSearch={!canView}
>
<Thead>
- <Tr>
+ <Tr ouiaId="acs-table-column-headers-row">
<Th
key="acs-checkbox"
style={{ width: 0 }}
/>
{columnHeaders.map(col => (
@@ -413,10 +415,11 @@
started_at: startedAt,
} = lastTask ?? {};
return (
<Tr
key={index}
+ ouiaId={`acs-row-${id}`}
style={isSingleSelected(id) && isExpanded ? customStyle : {}}
isStriped={isSingleSelected(id) && isExpanded}
>
<Td>
<Checkbox
@@ -426,10 +429,10 @@
isChecked={isSelected(id)}
onChange={selected => selectOne(selected, id)}
/>
</Td>
<Td>
- <Text onClick={() => onClick(id)} component="a">{name}</Text>
+ <Text onClick={() => onClick(id)} component="a" ouiaId={`acs-link-text-${index}`}>{name}</Text>
</Td>
<Td>{acsType === 'rhui' ? upperCase(acsType) : capitalize(acsType)}</Td>
<Td><LastSync
startedAt={startedAt}
lastSync={lastTask}