feat: show account storage usage
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user