Merge pull request #2524 from pikasTech/fix/2522-mdtodo-probe-contract
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success
fix(web): 恢复 MDTODO 稳定任务引用合同
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user