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