test(editor): cover the fixed category label of an existing access

This commit is contained in:
bchanot committed 2026-11-23 09:08:52 +01:00
1 parent cc70a565ce
commit cf5470229d
1 file changed
+11
@@ -259,6 +259,17 @@ describe('no ordinary category', () => {
}) })
}) })
describe('an existing access stored in it', () => {
it('shows the fixed label and no category select', async () => {
await mount(accessSheet())
const { opened } = await openEdit('acc')
expect(
within(opened).queryByRole('combobox', { name: 'Catégorie' }),
).toBeNull()
expect(within(opened).getByText(ACCESS_FR)).toBeInTheDocument()
})
})
describe('the head access', () => { describe('the head access', () => {
it('keeps the category select with the ordinary categories (D22)', async () => { it('keeps the category select with the ordinary categories (D22)', async () => {
const text = insert(withDetail(drawnText()), { const text = insert(withDetail(drawnText()), {