Added EntityOwnerPicker to the TemplateListPage

Signed-off-by: Jasper Boeijenga <jboeijenga@gmail.com>
This commit is contained in:
Jasper Boeijenga
2024-08-19 16:56:21 +02:00
parent 30fdcb735a
commit 18813b80e2
2 changed files with 24 additions and 0 deletions
@@ -114,6 +114,28 @@ describe('TemplateListPage', () => {
expect(getByText('Categories')).toBeInTheDocument();
});
it('should render the EntityOwnerPicker', async () => {
const { getByText } = await renderInTestApp(
<TestApiProvider
apis={[
[catalogApiRef, mockCatalogApi],
[
starredEntitiesApiRef,
new DefaultStarredEntitiesApi({
storageApi: MockStorageApi.create(),
}),
],
[permissionApiRef, {}],
]}
>
<TemplateListPage />
</TestApiProvider>,
{ mountedRoutes: { '/': rootRouteRef } },
);
expect(getByText('Owner')).toBeInTheDocument();
});
// eslint-disable-next-line jest/no-disabled-tests
it.skip('should render the EntityTag picker', async () => {
const { getByText } = await renderInTestApp(
@@ -34,6 +34,7 @@ import {
EntityTagPicker,
CatalogFilterLayout,
UserListPicker,
EntityOwnerPicker,
} from '@backstage/plugin-catalog-react';
import {
ScaffolderPageContextMenu,
@@ -189,6 +190,7 @@ export const TemplateListPage = (props: TemplateListPageProps) => {
/>
<TemplateCategoryPicker />
<EntityTagPicker />
<EntityOwnerPicker />
</CatalogFilterLayout.Filters>
<CatalogFilterLayout.Content>
<TemplateGroups