This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user