ui phase 1
This commit is contained in:
@@ -79,4 +79,13 @@ describe('<NurseResultCard/> component', () => {
|
||||
fireEvent.click(screen.getByRole('button'));
|
||||
expect(onSelect).toHaveBeenCalledWith(NURSE);
|
||||
});
|
||||
|
||||
it('exposes a co-located Skeleton twin matching the card shell', () => {
|
||||
const { container } = render(
|
||||
<ThemeProvider>
|
||||
<NurseResultCard.Skeleton />
|
||||
</ThemeProvider>,
|
||||
);
|
||||
expect(container.querySelectorAll('.MuiSkeleton-root').length).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user