test(admin): unit and browser tests for the mail editor fields

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 14:23:28 +01:00
parent 45017039b2
commit 1ae1a9553f
12 changed files with 1009 additions and 9 deletions

View File

@@ -59,7 +59,9 @@ describe('field renderer registry (D-05)', () => {
expect(isRegistered('codeeditor')).toBe(true)
expect(needsRecord('codeeditor')).toBe(false)
expect(rendererFor('codeeditor')).not.toBe(UnsupportedField)
expect(rendererFor('codeeditor').__name).toBe('CodeEditorField')
expect((rendererFor('codeeditor') as { name?: string; __name?: string }).name ?? (rendererFor('codeeditor') as { __name?: string }).__name).toBe(
'CodeEditorField',
)
})
it.each(['notatype', '', 'TEXT', 'constructor'])('falls back to UnsupportedField for %j', (type) => {