test(web): align performance all-window label (#1685)
This commit is contained in:
@@ -64,7 +64,7 @@ test("performance dashboard renders Chinese charts and keeps drill-down reachabl
|
||||
{ tab: "1 小时", windowId: "1h", label: "最近 1 小时" },
|
||||
{ tab: "6 小时", windowId: "6h", label: "最近 6 小时" },
|
||||
{ tab: "24 小时", windowId: "24h", label: "最近 24 小时" },
|
||||
{ tab: "全部", windowId: "all", label: "全部样本" }
|
||||
{ tab: "全部", windowId: "all", label: "全部累计" }
|
||||
];
|
||||
for (const item of windowChecks) {
|
||||
await page.getByRole("tab", { name: item.tab, exact: true }).click();
|
||||
@@ -76,7 +76,7 @@ test("performance dashboard renders Chinese charts and keeps drill-down reachabl
|
||||
const allRequestsBeforeRefresh = countWindowRequests(summaryRequests, "all");
|
||||
await page.getByLabel("采集新鲜度").getByRole("button", { name: "刷新" }).click();
|
||||
await expect.poll(async () => countWindowRequests(await performanceSummaryRequests(page), "all")).toBeGreaterThan(allRequestsBeforeRefresh);
|
||||
await expect(page.locator(".performance-contract-item").filter({ hasText: "观测窗口" })).toContainText("全部样本");
|
||||
await expect(page.locator(".performance-contract-item").filter({ hasText: "观测窗口" })).toContainText("全部累计");
|
||||
|
||||
await page.screenshot({ path: ".state/workbench-e2e/performance-dashboard-desktop.png", fullPage: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user