test(editor): cover the fixed category label of an existing access
This commit is contained in:
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', () => {
|
||||
it('keeps the category select with the ordinary categories (D22)', async () => {
|
||||
const text = insert(withDetail(drawnText()), {
|
||||
|
||||
Reference in new issue
Block a user