Archived
chore(w05): 在途改动落下 —— 启动表单收到三格、humanWrites 那一版清单
上一轮的工作树遗留(packageVersion 1.6.5 → 1.7.3):客户编码与客户名称从启动表单撤下, 三格全选填;活动内部仍认客户,运营端起的单缺这两个键的账已记在注释里。 本轮机制改造不碰活动包,先把它落下,免得混进后面的 diff。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LKMZDwMbyKzjw6Hembwvet
This commit is contained in:
@@ -56,8 +56,11 @@ describe('清单本身合规', () => {
|
||||
expect(manifest.contract.resources.budget.humanCalls).toBeGreaterThan(12);
|
||||
});
|
||||
|
||||
it('起单只必填 4 项(客户 / 需求 / 原 PN / 候选数组);datasheet 是选填文件', () => {
|
||||
expect(manifest.contract.input.data['required']).toEqual(['customerCode', 'requestDescription', 'originalInternalPn', 'candidateInternalPns']);
|
||||
it('起单一格必填都不设(2026-08-28 用户定);客户两格同日从启动表单撤下;datasheet 是选填文件', () => {
|
||||
expect(manifest.contract.input.data['required']).toEqual([]);
|
||||
const launchProps = Object.keys(manifest.contract.input.data['properties'] as Record<string, unknown>);
|
||||
expect(launchProps).not.toContain('customerCode');
|
||||
expect(launchProps).not.toContain('customerName');
|
||||
const properties = manifest.contract.input.data['properties'] as Record<string, { type?: string; format?: string }>;
|
||||
expect(properties['candidateInternalPns']?.type).toBe('array');
|
||||
expect(properties['datasheets']?.format).toBe('file');
|
||||
|
||||
Reference in New Issue
Block a user