feat: proper menu editor now

This commit is contained in:
2026-02-21 21:48:35 +01:00
parent e1d470a44a
commit 9dfada8466
11 changed files with 83 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ describe('MenuEditorView entry editor', () => {
{
id: 'menu-home',
title: 'Home',
kind: 'page',
kind: 'home',
pageSlug: 'home',
children: [],
},
@@ -217,4 +217,15 @@ describe('MenuEditorView entry editor', () => {
expect(deleteButton).toBeDisabled();
});
it('shows type as icon only (no visible type text label)', async () => {
const { container } = render(<MenuEditorView />);
await screen.findByText('Home');
const icon = container.querySelector('.menu-editor-row-kind-icon[data-kind="home"]');
expect(icon).not.toBeNull();
expect(screen.queryByText(/^page$/i)).not.toBeInTheDocument();
expect(screen.queryByText(/^submenu$/i)).not.toBeInTheDocument();
});
});