feat: show page context in browser tab titles
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user