Clarify dependency direction in EntityDependsOnResourcesCard

Signed-off-by: David Tuite <david@roadie.io>
This commit is contained in:
David Tuite
2021-06-22 10:49:42 +01:00
parent e4a845f06d
commit 3b590b8cf1
2 changed files with 3 additions and 3 deletions
@@ -66,7 +66,7 @@ describe('<DependsOnResourcesCard />', () => {
</Wrapper>,
);
expect(getByText('Resources')).toBeInTheDocument();
expect(getByText('Depends on resources')).toBeInTheDocument();
expect(
getByText(/No resource is a dependency of this component/i),
).toBeInTheDocument();
@@ -114,7 +114,7 @@ describe('<DependsOnResourcesCard />', () => {
);
await waitFor(() => {
expect(getByText('Resources')).toBeInTheDocument();
expect(getByText('Depends on resources')).toBeInTheDocument();
expect(getByText(/target-name/i)).toBeInTheDocument();
});
});
@@ -31,7 +31,7 @@ export const DependsOnResourcesCard = ({ variant = 'gridItem' }: Props) => {
return (
<RelatedEntitiesCard
variant={variant}
title="Resources"
title="Depends on resources"
entityKind="Resource"
relationType={RELATION_DEPENDS_ON}
columns={resourceEntityColumns}