fix(web): 恢复 MDTODO 稳定任务引用合同

This commit is contained in:
root
2026-07-13 14:08:56 +02:00
parent dbd4af6d4d
commit 01fff45c38
3 changed files with 10 additions and 0 deletions
@@ -213,6 +213,11 @@ test("R6 console semantics keep real icons, native entity lists, and dynamic acc
assert.match(accessStoreSource, /detail\.value = null/u);
});
test("R6 MDTODO task rows expose opaque task references", () => {
const taskTreeSource = read("src/components/mdtodo/MdtodoTaskTree.vue");
assert.match(taskTreeSource, /:data-task-ref="task\.taskRef"/u);
});
test("R6 Sub2API source comparison is recorded in parent/child issue scope", () => {
const issueBody = readIssueBodyFixture();
assert.match(issueBody, /Wei-Shaw\/sub2api@v0\.1\.136=a2f76e4/u);
@@ -164,6 +164,7 @@ function keydown(
"
:data-testid="`mdtodo-task-${task.taskId || task.rxxId}`"
:data-task-id="task.taskId || task.rxxId"
:data-task-ref="task.taskRef"
@click="emit('select', task.taskRef)"
@keydown="keydown($event, task, index)"
>
@@ -71,6 +71,10 @@ test.describe("project management pages", () => {
"已载入",
);
await expect(page.locator('[data-task-id="R1"]')).toBeVisible();
await expect(page.locator('[data-task-id="R1"]')).toHaveAttribute(
"data-task-ref",
"mdtodo:hwlab-v03-mdtodo:file_plan:R1",
);
await expect(page.locator('[data-task-id="R1.1"]')).toBeVisible();
await expect(page.locator('[data-task-id="R1.1.1"]')).toBeVisible();
await expect(page.getByTestId("mdtodo-task-detail")).not.toContainText(