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:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user