refactor: share instrument search presentation
Frontend verify / commits (pull_request) Successful in 24s
Frontend verify / security (pull_request) Failing after 9s
Frontend verify / verify (pull_request) Skipped

This commit is contained in:
2026-09-29 05:14:28 +03:00
parent 0865b35f93
commit 32a77860c8
18 changed files with 489 additions and 551 deletions
@@ -54,8 +54,13 @@ describe("AppBreadcrumbs", () => {
expect(screen.queryByRole("link")).not.toBeInTheDocument();
});
it("links to the account hierarchy from operations", () => {
renderBreadcrumbs("/accounts/account-1/operations", [
it.each([
["operations", "Операции"],
["OPERATIONS", "Операции"],
["events", "Будущие события"],
["income", "Пассивный доход"],
])("links to the account hierarchy from %s", (section, title) => {
renderBreadcrumbs(`/accounts/account-1/${section}`, [
{ id: "account-1", name: "ИИС" },
]);
@@ -66,7 +71,7 @@ describe("AppBreadcrumbs", () => {
"href",
"/accounts/account-1",
);
expect(screen.getByText("Операции")).toHaveAttribute(
expect(screen.getByText(title)).toHaveAttribute(
"aria-current",
"page",
);
@@ -86,7 +91,11 @@ describe("AppBreadcrumbs", () => {
expect(screen.queryByText("account-1")).not.toBeInTheDocument();
});
it.each(["/login", "/unknown"])("does not render on %s", (path) => {
it.each([
"/login",
"/unknown",
"/accounts/account-1/unknown",
])("does not render on %s", (path) => {
renderBreadcrumbs(path);
expect(