diff --git a/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx b/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx
index 6105f29ba8..ed51b7d21d 100644
--- a/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx
+++ b/plugins/kubernetes/src/components/ErrorReporting/ErrorReporting.tsx
@@ -97,14 +97,14 @@ export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => {
return (
<>
- {errors.length !== 0 &&
+ {errors.length !== 0 && (
- }
+ )}
>
);
};
diff --git a/plugins/kubernetes/src/components/KubernetesContent.test.tsx b/plugins/kubernetes/src/components/KubernetesContent.test.tsx
index 231eb3b37a..ffa5358537 100644
--- a/plugins/kubernetes/src/components/KubernetesContent.test.tsx
+++ b/plugins/kubernetes/src/components/KubernetesContent.test.tsx
@@ -45,11 +45,6 @@ describe('KubernetesContent', () => {
/>,
),
);
-
- expect(getByText('Error Reporting')).toBeInTheDocument();
- expect(
- getByText('Nice! There are no errors to report!'),
- ).toBeInTheDocument();
expect(getByText('Your Clusters')).toBeInTheDocument();
// TODO add a prompt for the user to configure their clusters
});
@@ -94,9 +89,6 @@ describe('KubernetesContent', () => {
),
);
- expect(
- getByText('Nice! There are no errors to report!'),
- ).toBeInTheDocument();
expect(getByText('cluster-1')).toBeInTheDocument();
expect(getByText('Cluster')).toBeInTheDocument();
expect(getByText('10 pods')).toBeInTheDocument();
@@ -148,7 +140,7 @@ describe('KubernetesContent', () => {
},
error: undefined,
});
- const { getByText, getAllByText, queryByText } = render(
+ const { getByText, getAllByText } = render(
wrapInTestApp(
{
/>,
),
);
-
- expect(queryByText('Nice! There are no errors to report!')).toBeNull();
expect(getAllByText('Cluster')).toHaveLength(2);
expect(getByText('cluster-a')).toBeInTheDocument();
expect(getByText('10 pods')).toBeInTheDocument();