feat: show current-cycle daily token peak
This commit is contained in:
@@ -843,7 +843,7 @@ function AccountDashboardDetails({
|
||||
/>
|
||||
<Stat
|
||||
icon={<TrendingUp />}
|
||||
label="单日峰值"
|
||||
label="本周期单日峰值"
|
||||
v={num(dashboard.summary.peakDailyTokens)}
|
||||
/>
|
||||
<Stat
|
||||
|
||||
@@ -173,6 +173,7 @@ test("shows every account as a collapsible summary on the overview", async ({
|
||||
first.getByRole("heading", { name: "每日 Token 趋势" }),
|
||||
).toBeVisible();
|
||||
await expect(first.getByText("本周期 Tokens")).toBeVisible();
|
||||
await expect(first.getByText("本周期单日峰值")).toBeVisible();
|
||||
await expect(first.getByText("123.5K", { exact: true })).toBeVisible();
|
||||
await expect(first.getByText("按每日数据汇总")).toBeVisible();
|
||||
await expect(page.locator(".account-detail")).toHaveCount(1);
|
||||
|
||||
Reference in New Issue
Block a user