|
@@ -16,7 +16,7 @@ test("project artifact library aggregates ended runs and previews files", async
|
|
|
await expect(group.getByText("研究计划.pdf", { exact: true })).toBeVisible()
|
|
await expect(group.getByText("研究计划.pdf", { exact: true })).toBeVisible()
|
|
|
await expect(group.getByText("研究计划.md", { exact: true })).toBeVisible()
|
|
await expect(group.getByText("研究计划.md", { exact: true })).toBeVisible()
|
|
|
await expect(group.getByText("config.yml", { exact: true })).toBeVisible()
|
|
await expect(group.getByText("config.yml", { exact: true })).toBeVisible()
|
|
|
- await expect(page.getByText("6 个文件", { exact: true })).toBeVisible()
|
|
|
|
|
|
|
+ await expect(page.getByText("7 个文件", { exact: true })).toBeVisible()
|
|
|
|
|
|
|
|
// Duplicate artifact names collapse into one row.
|
|
// Duplicate artifact names collapse into one row.
|
|
|
await expect(group.getByText("manifest.json", { exact: true })).toHaveCount(1)
|
|
await expect(group.getByText("manifest.json", { exact: true })).toHaveCount(1)
|
|
@@ -45,7 +45,11 @@ test("artifact library filters by type and search", async ({ page }) => {
|
|
|
await expect(library.getByText("config.yml", { exact: true })).toBeVisible()
|
|
await expect(library.getByText("config.yml", { exact: true })).toBeVisible()
|
|
|
await expect(library.getByText("研究计划.md", { exact: true })).toHaveCount(0)
|
|
await expect(library.getByText("研究计划.md", { exact: true })).toHaveCount(0)
|
|
|
|
|
|
|
|
- await page.getByRole("button", { name: "全部 · 6", exact: true }).click()
|
|
|
|
|
|
|
+ await page.getByRole("button", { name: "代码 · 1", exact: true }).click()
|
|
|
|
|
+ await expect(library.getByText("analysis.py", { exact: true })).toBeVisible()
|
|
|
|
|
+ await expect(library.getByText("config.yml", { exact: true })).toHaveCount(0)
|
|
|
|
|
+
|
|
|
|
|
+ await page.getByRole("button", { name: "全部 · 7", exact: true }).click()
|
|
|
await page.getByLabel("搜索成果", { exact: true }).fill("不存在")
|
|
await page.getByLabel("搜索成果", { exact: true }).fill("不存在")
|
|
|
await expect(library.getByText("没有匹配的成果", { exact: true })).toBeVisible()
|
|
await expect(library.getByText("没有匹配的成果", { exact: true })).toBeVisible()
|
|
|
await page.getByRole("button", { name: "清除筛选", exact: true }).click()
|
|
await page.getByRole("button", { name: "清除筛选", exact: true }).click()
|