feat: show page context in browser tab titles

This commit is contained in:
2026-09-11 11:26:11 +03:00
parent ebba6ab25d
commit 2580134683
10 changed files with 218 additions and 2 deletions
+2
View File
@@ -46,6 +46,7 @@ describe("AppRoutes", () => {
screen.getByRole("heading", { level: 1, name: title }),
).toBeInTheDocument(),
);
expect(document.title).toBe(`${title} — WealthLedger`);
});
it("redirects anonymous users from accounts", async () => {
@@ -86,6 +87,7 @@ describe("AppRoutes", () => {
name: "Нет инвестиционных счетов",
}),
).toBeInTheDocument();
expect(document.title).toBe("Счета — WealthLedger");
expect(credentials).toEqual({
email: "user@example.com",
password: "a secure password",