catalog-import: fix test + bump CodeSnippet change to minor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
'@backstage/core-components': minor
|
||||
---
|
||||
|
||||
The syntax highlighting library used by the `CodeSnippet` component is now lazy loaded.
|
||||
The syntax highlighting library used by the `CodeSnippet` component is now lazy loaded. This most likely has no effect on existing code, but may break tests as the content of the `CodeSnippet` is now rendered asynchronously.
|
||||
|
||||
+2
-2
@@ -46,7 +46,7 @@ const entities: Entity[] = [
|
||||
|
||||
describe('<PreviewCatalogInfoComponent />', () => {
|
||||
it('renders without exploding', async () => {
|
||||
const { getByText } = render(
|
||||
const { getByText, findByText } = render(
|
||||
<PreviewCatalogInfoComponent
|
||||
repositoryUrl="http://my-repository/a/"
|
||||
entities={entities}
|
||||
@@ -54,7 +54,7 @@ describe('<PreviewCatalogInfoComponent />', () => {
|
||||
);
|
||||
|
||||
const repositoryUrl = getByText('http://my-repository/a/catalog-info.yaml');
|
||||
const kindText = getByText('Kind_2');
|
||||
const kindText = await findByText('Kind_2');
|
||||
expect(repositoryUrl).toBeInTheDocument();
|
||||
expect(repositoryUrl).toBeVisible();
|
||||
expect(kindText).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user