feat(版本): 完善研发计划与预警已读
关键改动: - 增加版本表单、发布校验和调研方向进度规则 - 扩展小宝预警已读状态、风险签名和今日证据 - 补充组长权限、加班查看范围、活动记录与相关测试 Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
@@ -193,3 +193,16 @@ test('hides coverage record action after a requirement is completed', () => {
|
||||
assert.equal(canOpenRequirementCoverageRecord!('completed', true), false);
|
||||
assert.equal(canOpenRequirementCoverageRecord!('partial', false), false);
|
||||
});
|
||||
|
||||
test('keeps research direction presets visible while disabling selected presets', () => {
|
||||
const getResearchDirectionPresetOptions = (versionPlan as any).getResearchDirectionPresetOptions as undefined | ((
|
||||
tasks: Array<{ title: string }>,
|
||||
) => Array<{ title: string; disabled: boolean }>);
|
||||
assert.equal(typeof getResearchDirectionPresetOptions, 'function');
|
||||
|
||||
const options = getResearchDirectionPresetOptions!([{ title: '竞品分析' }]);
|
||||
|
||||
assert.ok(options.length >= 6);
|
||||
assert.equal(options.find((option) => option.title === '竞品分析')?.disabled, true);
|
||||
assert.equal(options.find((option) => option.title === '用户访谈')?.disabled, false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user