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

@@ -55,7 +55,9 @@ describe('form state helpers', () => {
active: false,
unknown_key: 'x',
})
expect(body).toEqual({ name: 'Blue', tags: [3], active: false })
// colorpicker is a registered control (Phase 35); owner is read-only and
// members is a relation manager (not sent here).
expect(body).toEqual({ name: 'Blue', color: '#fff', tags: [3], active: false })
})
it('never sends widget or partial fields, even with a value under their name', () => {