feat(版本): 完善研发计划与预警已读
关键改动: - 增加版本表单、发布校验和调研方向进度规则 - 扩展小宝预警已读状态、风险签名和今日证据 - 补充组长权限、加班查看范围、活动记录与相关测试 Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
@@ -22,14 +22,15 @@ function plan(patch: Partial<VersionPlan>): VersionPlan {
|
||||
};
|
||||
}
|
||||
|
||||
test('does not allow research result submission when subtasks are incomplete', () => {
|
||||
test('research requires direction completion instead of linked requirement coverage', () => {
|
||||
const state = getPlanCompletionState(plan({
|
||||
type: 'research',
|
||||
tasks: [{ id: 'task-1', title: '调研方向', status: 'pending' }],
|
||||
linkedRequirementIds: [],
|
||||
linkedRequirementIds: ['r1'],
|
||||
}));
|
||||
assert.equal(state.canSubmitResult, false);
|
||||
assert.ok(state.missingReasons.includes('子任务未全部完成'));
|
||||
assert.ok(state.missingReasons.includes('调研方向未全部完成'));
|
||||
assert.equal(state.missingReasons.includes('关联需求未全部覆盖'), false);
|
||||
});
|
||||
|
||||
test('requires product requirement coverage when linked requirements exist', () => {
|
||||
@@ -99,7 +100,7 @@ test('ui plan does not require task checklist', () => {
|
||||
assert.equal(state.canSubmitResult, true);
|
||||
});
|
||||
|
||||
test('research requires tasks and result but not requirement coverage', () => {
|
||||
test('research requires completed directions and result but not linked requirement coverage', () => {
|
||||
const state = getPlanCompletionState(plan({
|
||||
type: 'research',
|
||||
tasks: [{ id: 'task-1', title: '调研', status: 'completed' }],
|
||||
|
||||
Reference in New Issue
Block a user