feat(frontend): simplify the candidate cabinet header

This commit is contained in:
shira committed 2026-10-10 15:34:42 +03:00
1 parent 90ff71735a
commit 89932b8714
28 files changed
+1154 -179

No files matched your search

+10 -2
View File
@@ -197,8 +197,16 @@ describe("route groups", () => {
it("marks the active cabinet section with aria-current", async () => {
expect(currentLinkText(await renderHtml("/candidate"))).toEqual(["Главная"]);
expect(currentLinkText(await renderHtml("/candidate/results"))).toEqual(["Результаты"]);
expect(currentLinkText(await renderHtml("/candidate/privacy"))).toEqual(["Приватность"]);
// The results are a sub-section of the test: the switch segment is the
// page, and the primary "Тест" item is current as the section (true).
const results = await renderHtml("/candidate/results");
expect(currentLinkText(results)).toEqual(["Результаты"]);
expect(results).toMatch(/<a[^>]*aria-current="true"[^>]*>Тест<\/a>/);
// The account menu is rendered for the header and for the phone tab bar.
expect(currentLinkText(await renderHtml("/candidate/privacy"))).toEqual([
"Приватность",
"Приватность",
]);
expect(currentLinkText(await renderHtml("/employer/invitations"))).toEqual(["Приглашения"]);
});