feat: show account storage usage
CI and Deploy / test (push) Successful in 2m37s
CI and Deploy / deploy (push) Successful in 58s

This commit is contained in:
cesnimda
2026-07-31 00:10:15 +02:00
parent 9f16a5675a
commit 10d548f799
3 changed files with 21 additions and 3 deletions
@@ -13,6 +13,8 @@ test("shows monthly AI call and token limits", async () => {
plan: "free",
monthlyCallLimit: 25,
monthlyTokenLimit: 100000,
storageUsedBytes: 50000000,
storageLimitBytes: 250000000,
},
});
@@ -20,5 +22,6 @@ test("shows monthly AI call and token limits", async () => {
expect(await screen.findByText("4 of 25 generations this month")).toBeInTheDocument();
expect(screen.getByText("12,000 of 100,000 estimated tokens")).toBeInTheDocument();
expect(screen.getByText("50.0 MB of 250.0 MB attachment storage")).toBeInTheDocument();
expect(screen.getByLabelText("Monthly AI generations used")).toHaveAttribute("aria-valuenow", "16");
});