Clarify title of HasSubcomponentsCard
Signed-off-by: David Tuite <david@roadie.io>
This commit is contained in:
@@ -66,7 +66,7 @@ describe('<HasSubcomponentsCard />', () => {
|
||||
</Wrapper>,
|
||||
);
|
||||
|
||||
expect(getByText('Subcomponents')).toBeInTheDocument();
|
||||
expect(getByText('Has subcomponents')).toBeInTheDocument();
|
||||
expect(
|
||||
getByText(/No subcomponent is part of this component/i),
|
||||
).toBeInTheDocument();
|
||||
@@ -114,7 +114,7 @@ describe('<HasSubcomponentsCard />', () => {
|
||||
);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(getByText('Subcomponents')).toBeInTheDocument();
|
||||
expect(getByText('Has subcomponents')).toBeInTheDocument();
|
||||
expect(getByText(/target-name/i)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -30,7 +30,7 @@ export const HasSubcomponentsCard = ({ variant = 'gridItem' }: Props) => {
|
||||
return (
|
||||
<RelatedEntitiesCard
|
||||
variant={variant}
|
||||
title="Subcomponents"
|
||||
title="Has subcomponents"
|
||||
entityKind="Component"
|
||||
relationType={RELATION_HAS_PART}
|
||||
columns={componentEntityColumns}
|
||||
|
||||
Reference in New Issue
Block a user