feat(portfolio): visualize asset allocation
This commit is contained in:
@@ -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(
|
||||
"Все счета",
|
||||
|
||||
Reference in New Issue
Block a user