Skip to content

Commit a9ea110

Browse files
committed
test(app-shell): the switch to Run a script now stores type on a skeleton that holds none
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVG55iUTTWRd5tR6Di
1 parent f206488 commit a9ea110

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/ActionDefaultInspector.scriptBodyLanguage-11921.test.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ describe('scriptBodyPin — the switch to "Run a script" seeds the language (obj
131131

132132
await pick('What it does', RUN_A_SCRIPT);
133133

134+
// `type` is stored with the switch: the skeleton holds none (objectstack#26734).
134135
expect(seen.writes.at(-1)).toStrictEqual({
136+
type: 'script',
135137
operation: undefined,
136138
patch: undefined,
137139
body: { language: 'expression' },
@@ -293,7 +295,7 @@ describe('scriptBodyPin — controls: the other writes (objectui#11921)', () =>
293295
const seen = mountHost({ ...NEW_ACTION, target: 'stamp_invoice' });
294296

295297
await pick('What it does', RUN_A_SCRIPT);
296-
expect(seen.writes.at(-1)).toStrictEqual({ operation: undefined, patch: undefined });
298+
expect(seen.writes.at(-1)).toStrictEqual({ type: 'script', operation: undefined, patch: undefined });
297299
expect(refusals(seen.draft)).toEqual([]);
298300
});
299301
});

0 commit comments

Comments
 (0)