feat(portfolio): visualize asset allocation

This commit is contained in:
2026-09-09 21:30:12 +03:00
parent daf1dca666
commit 0306526d33
19 changed files with 1142 additions and 12 deletions
+8 -1
View File
@@ -39,6 +39,7 @@ const portfolio: Portfolio = {
lastSuccessfulAt: "2026-08-15T12:00:00Z",
isStale: false,
totalsByCurrency: [{ currency: "RUB", value: "1200" }],
structure: { currencies: [], unvaluedCategories: [] },
cashBalances: [],
positions: accounts.map((account) => ({ ...position, account })),
};
@@ -188,7 +189,13 @@ describe("All accounts routes", () => {
])("opens %s directly", async (path, title) => {
renderPage(path);
expect(
await screen.findByRole("heading", { level: 1, name: title }),
// The lazy route also imports charts; parallel coverage instrumentation
// can exceed RTL's one-second default before the route is mounted.
await screen.findByRole(
"heading",
{ level: 1, name: title },
{ timeout: 5000 },
),
).toBeInTheDocument();
expect(screen.getByRole("combobox", { name: "Счёт" })).toHaveValue(
"Все счета",