Skip to content

Commit f282e8a

Browse files
committed
test(console): the #11605 sectioned-form rows drop the retired split
split left the object-form block's formType with ADR-0050, so the inline-sections control no longer runs it as a sectioned variant. Claude-Session: https://claude.ai/code/session_01JQwxbWHWPRD5rZXeY69YvL Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1f16817 commit f282e8a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎ui/apps/console/src/__tests__/objectname-neither-hint-11605.test.tsx‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
* is working. `object-kanban` has two such rows: inline `data`, and lanes
3939
* that carry their own `cards`. `object-form` and `view:form` have two
4040
* kinds: inline `customFields`, and, for each sectioned `formType`
41-
* (`tabbed`, `wizard`, `split`, `drawer`, `modal`), sections whose every
42-
* field is inline.
41+
* (`tabbed`, `wizard`, `drawer`, `modal`), sections whose every field is
42+
* inline. `split` left the block's `formType` with ADR-0050 (#27159).
4343
*/
4444

4545
import { describe, it, expect } from 'vitest';
@@ -175,8 +175,12 @@ async function mount(schema: Record<string, unknown>) {
175175
*/
176176
const INLINE_SECTIONS = [{ label: 'Contact', fields: [{ name: 'email', label: 'Email address', type: 'text' }] }];
177177

178-
/** The `formType`s `ObjectForm` dispatches to a sectioned renderer of its own. */
179-
const SECTIONED_VARIANTS = ['tabbed', 'wizard', 'split', 'drawer', 'modal'] as const;
178+
/**
179+
* The `formType`s the block hands to a sectioned renderer of its own: the two
180+
* layouts `ObjectForm` draws, and the two containers `ObjectFormContainer`
181+
* opens. `split` is gone with its renderer (#27159).
182+
*/
183+
const SECTIONED_VARIANTS = ['tabbed', 'wizard', 'drawer', 'modal'] as const;
180184

181185
const SECTIONED_ROWS = (['object-form', 'view:form'] as const).flatMap((type) =>
182186
SECTIONED_VARIANTS.map((formType) => ({ type, formType })),

0 commit comments

Comments
 (0)