-
Notifications
You must be signed in to change notification settings - Fork 390
RI-7365: Show no indexes message #4870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Code Coverage - Frontend unit tests
Test suite run success5061 tests passing in 665 suites. Report generated by 🧪jest coverage report action from 134aff8 |
|
||
return ( | ||
<StyledManageIndexesListAction data-testid="manage-indexes-list"> | ||
{loading && <Loader data-testid="manage-indexes-list--loader" />} | ||
|
||
{!loading && !hasIndexes && <NoIndexesMessage />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe worth adding a test for the empty list
import { CallOut } from 'uiSrc/components/base/display/call-out/CallOut' | ||
import { Pages } from 'uiSrc/constants' | ||
import useStartWizard from '../hooks/useStartWizard' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can probably simplify this component's tests by mocking '../hooks/useStartWizard' as opposed to it's internals ('react-router-dom') since you've already tested them; not mandatory ofc
return { | ||
start, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if there's no plan on adding more attributes to the return object, it might be better to return just the function
When no indexes
When there are indexes