Skip to content

Commit

Permalink
Enrich CHeckResultsOverview test
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Jun 9, 2023
1 parent 192cd54 commit febb632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions assets/js/components/ClusterDetails/ChecksResultOverview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ function ChecksResultOverview({
<div className="flex flex-col items-center px-4">
<h1 className="text-center text-2xl font-bold">Check Summary</h1>
<span className="text-sm">Checks execution running...</span>
<Spinner
spinnerColor="fill-jungle-green-500"
size="xl"
wrapperClassName="pt-12"
/>
<Spinner size="xl" wrapperClassName="pt-12" />
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ describe('ChecksResultOverview component', () => {
render(<ChecksResultOverview loading />);

expect(screen.getByRole('alert')).toBeVisible();
expect(screen.queryByText('Check Summary')).toBeInTheDocument();
expect(
screen.queryByText('Checks execution running...')
).toBeInTheDocument();
expect(screen.queryByText('Passing')).not.toBeInTheDocument();
expect(screen.queryByText('Warning')).not.toBeInTheDocument();
expect(screen.queryByText('Critical')).not.toBeInTheDocument();
Expand Down

0 comments on commit febb632

Please sign in to comment.