feat(staples): A3/D3 — Pantry staples toggle UI #35
@@ -99,4 +99,9 @@ describe('StaplesManager', () => {
|
||||
const grid = screen.getByTestId('category-grid');
|
||||
expect(grid.className).toContain('md:grid-cols-3');
|
||||
});
|
||||
|
||||
it('renders without crashing when categories is empty', () => {
|
||||
render(StaplesManager, { props: { categories: [], context: 'onboarding' } });
|
||||
expect(screen.queryByRole('button')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user