|
@@ -60,6 +60,7 @@ test("project filters preserve provenance and unknown tasks remain unassigned",
|
|
|
await page.getByRole("button", { name: "创建项目", exact: true }).click()
|
|
await page.getByRole("button", { name: "创建项目", exact: true }).click()
|
|
|
await send(page, "项目二研究")
|
|
await send(page, "项目二研究")
|
|
|
await page.getByRole("button", { name: "平台任务", exact: true }).click()
|
|
await page.getByRole("button", { name: "平台任务", exact: true }).click()
|
|
|
|
|
+ await expect(page.getByLabel("项目范围", { exact: true }).locator('option[value=""]')).toHaveCount(0)
|
|
|
await expect(page.getByRole("table")).toContainText("项目二研究")
|
|
await expect(page.getByRole("table")).toContainText("项目二研究")
|
|
|
await expect(page.getByRole("table")).not.toContainText("项目一研究")
|
|
await expect(page.getByRole("table")).not.toContainText("项目一研究")
|
|
|
await page.getByLabel("项目范围", { exact: true }).selectOption("all")
|
|
await page.getByLabel("项目范围", { exact: true }).selectOption("all")
|
|
@@ -68,9 +69,10 @@ test("project filters preserve provenance and unknown tasks remain unassigned",
|
|
|
window.paasUX.add({ run_id: "orphan", agent_id: "research", status: "failed", input: "其他设备历史" }),
|
|
window.paasUX.add({ run_id: "orphan", agent_id: "research", status: "failed", input: "其他设备历史" }),
|
|
|
)
|
|
)
|
|
|
await page.getByRole("button", { name: "刷新任务", exact: true }).click()
|
|
await page.getByRole("button", { name: "刷新任务", exact: true }).click()
|
|
|
|
|
+ await expect(page.getByLabel("项目范围", { exact: true }).locator('option[value=""]')).toHaveText("未关联项目")
|
|
|
await page.getByLabel("项目范围", { exact: true }).selectOption("")
|
|
await page.getByLabel("项目范围", { exact: true }).selectOption("")
|
|
|
await expect(page.getByRole("table")).toContainText("其他设备历史")
|
|
await expect(page.getByRole("table")).toContainText("其他设备历史")
|
|
|
- await expect(page.getByRole("table")).toContainText("未归属")
|
|
|
|
|
|
|
+ await expect(page.getByRole("table")).toContainText("未关联项目")
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
test("input material is separate from deliverables and internal config is not offered", async ({ page }) => {
|
|
test("input material is separate from deliverables and internal config is not offered", async ({ page }) => {
|