From 7d308d65c7ea15aa7a71b684b7e91e97a2330bc8 Mon Sep 17 00:00:00 2001 From: sblausten Date: Thu, 22 Dec 2022 14:31:21 +0100 Subject: [PATCH] Fix test and update api-report Signed-off-by: sblausten --- plugins/explore/api-report.md | 4 ---- .../components/DefaultExplorePage/DefaultExplorePage.test.tsx | 3 ++- plugins/explore/src/components/index.ts | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/explore/api-report.md b/plugins/explore/api-report.md index d184ce01a4..d10f5ddf95 100644 --- a/plugins/explore/api-report.md +++ b/plugins/explore/api-report.md @@ -9,7 +9,6 @@ import { ApiRef } from '@backstage/core-plugin-api'; import { BackstagePlugin } from '@backstage/core-plugin-api'; import { default as default_2 } from 'react'; import { DiscoveryApi } from '@backstage/core-plugin-api'; -import { DomainEntity } from '@backstage/catalog-model'; import { ExploreToolsConfig } from '@backstage/plugin-explore-react'; import { ExternalRouteRef } from '@backstage/core-plugin-api'; import { FetchApi } from '@backstage/core-plugin-api'; @@ -31,9 +30,6 @@ export const catalogEntityRouteRef: ExternalRouteRef< true >; -// @public (undocumented) -export const DomainCard: (props: { entity: DomainEntity }) => JSX.Element; - // @public (undocumented) export const DomainExplorerContent: (props: { title?: string | undefined; diff --git a/plugins/explore/src/components/DefaultExplorePage/DefaultExplorePage.test.tsx b/plugins/explore/src/components/DefaultExplorePage/DefaultExplorePage.test.tsx index 62d197803f..f2533dbc40 100644 --- a/plugins/explore/src/components/DefaultExplorePage/DefaultExplorePage.test.tsx +++ b/plugins/explore/src/components/DefaultExplorePage/DefaultExplorePage.test.tsx @@ -56,8 +56,9 @@ describe('', () => { await waitFor(() => { const elements = getAllByRole('tab'); - expect(elements.length).toBe(3); + expect(elements.length).toBe(4); expect(getByText(elements[0], 'Domains')).toBeInTheDocument(); + expect(getByText(elements[1], 'Systems')).toBeInTheDocument(); expect(getByText(elements[1], 'Groups')).toBeInTheDocument(); expect(getByText(elements[2], 'Tools')).toBeInTheDocument(); }); diff --git a/plugins/explore/src/components/index.ts b/plugins/explore/src/components/index.ts index 96175770fa..4cee9f7143 100644 --- a/plugins/explore/src/components/index.ts +++ b/plugins/explore/src/components/index.ts @@ -14,5 +14,6 @@ * limitations under the License. */ +export * from './EntityExplorerContent'; export * from './ExploreLayout'; export * from './ToolSearchResultListItem';