Disambiguate component dependency cards
Signed-off-by: David Tuite <david@roadie.io>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog': patch
|
||||
---
|
||||
|
||||
Disambiguated titles of `EntityDependencyOfComponentsCard` and `EntityDependsOnComponentsCard`.
|
||||
+2
-2
@@ -66,7 +66,7 @@ describe('<DependencyOfComponentsCard />', () => {
|
||||
</Wrapper>,
|
||||
);
|
||||
|
||||
expect(getByText('Components')).toBeInTheDocument();
|
||||
expect(getByText('Dependency of components')).toBeInTheDocument();
|
||||
expect(
|
||||
getByText(/No component depends on this component/i),
|
||||
).toBeInTheDocument();
|
||||
@@ -114,7 +114,7 @@ describe('<DependencyOfComponentsCard />', () => {
|
||||
);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(getByText('Components')).toBeInTheDocument();
|
||||
expect(getByText('Dependency of components')).toBeInTheDocument();
|
||||
expect(getByText(/target-name/i)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ type Props = {
|
||||
|
||||
export const DependencyOfComponentsCard = ({
|
||||
variant = 'gridItem',
|
||||
title = 'Components',
|
||||
title = 'Dependency of components',
|
||||
}: Props) => {
|
||||
return (
|
||||
<RelatedEntitiesCard
|
||||
|
||||
+2
-2
@@ -66,7 +66,7 @@ describe('<DependsOnComponentsCard />', () => {
|
||||
</Wrapper>,
|
||||
);
|
||||
|
||||
expect(getByText('Components')).toBeInTheDocument();
|
||||
expect(getByText('Depends on components')).toBeInTheDocument();
|
||||
expect(
|
||||
getByText(/No component is a dependency of this component/i),
|
||||
).toBeInTheDocument();
|
||||
@@ -114,7 +114,7 @@ describe('<DependsOnComponentsCard />', () => {
|
||||
);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(getByText('Components')).toBeInTheDocument();
|
||||
expect(getByText('Depends on components')).toBeInTheDocument();
|
||||
expect(getByText(/target-name/i)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -30,7 +30,7 @@ type Props = {
|
||||
|
||||
export const DependsOnComponentsCard = ({
|
||||
variant = 'gridItem',
|
||||
title = 'Components',
|
||||
title = 'Depends on components',
|
||||
}: Props) => {
|
||||
return (
|
||||
<RelatedEntitiesCard
|
||||
|
||||
Reference in New Issue
Block a user