webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailsTable.js in katello-4.6.2.1 vs webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailsTable.js in katello-4.7.0.rc1
- old
+ new
@@ -32,11 +32,11 @@
responseSelector,
statusSelector,
autocompleteEndpoint,
fetchItems,
columnHeaders,
- disableSearch,
+ hideSearch,
route,
}, repositories,
}) => {
const ALL_REPOSITORIES = __('All Repositories');
const [searchQuery, updateSearchQuery] = useState('');
@@ -75,11 +75,11 @@
metadata,
searchQuery,
updateSearchQuery,
status,
autocompleteEndpoint,
- disableSearch,
+ hideSearch,
}}
ouiaId={`content-view-version-details-${kebabCase(route)}-table`}
additionalListeners={[selected]}
fetchItems={fetchItemsWithRepositoryId}
emptySearchTitle={__('Your search returned no matching ') + name}
@@ -90,10 +90,11 @@
actionButtons={
repoType &&
<Select
onToggle={setOpen}
isOpen={open}
+ ouiaId="repo-type-selector"
variant={SelectVariant.single}
onSelect={(_e, selection) => {
const index = selectedList
.findIndex((({ name: repoName }) => repoName === selection));
setSelected(index || 0);
@@ -106,17 +107,17 @@
))}
</Select>
}
>
<Thead>
- <Tr>
+ <Tr ouiaId="column-headers">
{columnHeaders.map(({ title, width }) =>
<Th width={width} key={`${title}-header`}>{title}</Th>)}
</Tr>
</Thead>
<Tbody>
{results?.map((result, index) => (
- <Tr key={`column-${index}`}>
+ <Tr key={`column-${index}`} ouiaId={`column-${index}`}>
{columnHeaders.map(({ getProperty }, colIndex) =>
<Td key={`cell-${colIndex}`}>{getProperty(result)} </Td>)}
</Tr>
))}
</Tbody>