feat: 调整 Alpha 视图标签与筛选工具栏交互
Deploy production / deploy (push) Successful in 36s

This commit is contained in:
yuxuanhui
2026-09-10 14:55:23 +08:00
parent 6ce33eb572
commit 1e67f43012
9 changed files with 995 additions and 414 deletions
+9 -1
View File
@@ -81,6 +81,7 @@ test("submission tabs, day selection, local correlation and reload", async ({
expect(complete.processed).toBe(103);
await expect(page.locator(".job-panel")).toContainText("2025-02-02");
await page.keyboard.press("Escape");
await page.getByRole("button", { name: "筛选 Alpha", exact: true }).click();
await page.getByRole("textbox", { name: "搜索 Alpha" }).fill("TEST0003");
await page.getByRole("button", { name: "查询", exact: true }).click();
await expect(page.locator(".alpha-link")).toHaveCount(1);
@@ -96,11 +97,15 @@ test("submission tabs, day selection, local correlation and reload", async ({
await page.getByRole("tab", { name: "待提交", exact: true }).hover();
await page.getByRole("tab", { name: "待提交", exact: true }).click();
await page.getByRole("button", { name: "筛选 Alpha", exact: true }).click();
await expect(page.getByRole("textbox", { name: "搜索 Alpha" })).toHaveValue(
"",
);
await page.getByRole("button", { name: "关闭筛选", exact: true }).click();
await page.getByRole("button", { name: "按天同步", exact: true }).click();
await expect(page.getByRole("dialog")).toContainText("创建日期");
await expect(
page.getByRole("dialog", { name: "按天同步待提交 Alpha" }),
).toContainText("创建日期");
await page.getByLabel("同步开始日期").fill("2025-01-01");
await page.getByLabel("同步结束日期").fill("2025-01-01");
await page.getByRole("button", { name: "开始同步", exact: true }).click();
@@ -115,6 +120,7 @@ test("submission tabs, day selection, local correlation and reload", async ({
)
.toBe(413);
await page.keyboard.press("Escape");
await page.getByRole("button", { name: "筛选 Alpha", exact: true }).click();
await page.getByRole("textbox", { name: "搜索 Alpha" }).fill("TEST0004");
await page.getByRole("button", { name: "查询", exact: true }).click();
await page.route("**/api/v1/alphas/TEST0004", async (route) => {
@@ -147,6 +153,7 @@ test("submission tabs, day selection, local correlation and reload", async ({
detail.is_metrics.unavailable = null;
await route.fulfill({ response, json: detail });
});
await expect(page.locator(".alpha-link")).toHaveCount(1);
await page.locator(".alpha-link").click();
const sheet = page.locator(".alpha-detail");
await expect(sheet.getByRole("tab")).toHaveText([
@@ -290,6 +297,7 @@ test("submission tabs, day selection, local correlation and reload", async ({
});
await page.keyboard.press("Escape");
await page.reload();
await page.getByRole("button", { name: "筛选 Alpha", exact: true }).click();
await page.getByRole("textbox", { name: "搜索 Alpha" }).fill("TEST0004");
await page.getByRole("button", { name: "查询", exact: true }).click();
await expect(page.locator(".alpha-table:visible")).toContainText(