fix(admin): restore suite after colorpicker and codeeditor registration

- Expect colorpicker/codeeditor as registered controls; use notatype for unsupported cases
- Seed DatePicker placeholder from the model value so the calendar opens on that month
- Make CodeEditor chunk-failure mock reject the dynamic import

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 13:53:44 +01:00
parent 5f62cd6b92
commit e81cfde7b2
6 changed files with 32 additions and 16 deletions

View File

@@ -164,7 +164,9 @@ describe('field renderer', () => {
})
it('renders the unsupported box for an unknown type', () => {
const wrapper = mount(FieldRenderer, { props: { field: formField('color'), modelValue: '#fff', controlId: 'c' } })
const wrapper = mount(FieldRenderer, {
props: { field: { ...formField('color'), type: 'notatype' }, modelValue: '#fff', controlId: 'c' },
})
expect(wrapper.find('[data-unsupported-field]').exists()).toBe(true)
})
})