feat(frontend): complete candidate flow and public pages

This commit is contained in:
TakuyaYagam1 committed 2026-10-11 22:37:07 +03:00
1 parent a69b1a79bb
commit e4be4a3956
63 files changed
+1903 -746

No files matched your search

+10 -1
View File
@@ -150,6 +150,8 @@ describe("route groups", () => {
["/register", "Регистрация", "Публичные разделы"],
["/verify-email", "Подтверждение почты", "Публичные разделы"],
["/support", "Поддержка", "Публичные разделы"],
["/terms", "Условия использования", "Публичные разделы"],
["/privacy", "Конфиденциальность", "Публичные разделы"],
["/candidate", "Главная", "Разделы кабинета кандидата"],
["/candidate/profile", "Профиль", "Разделы кабинета кандидата"],
["/candidate/questionnaire", "Анкета", "Разделы кабинета кандидата"],
@@ -196,6 +198,13 @@ describe("route groups", () => {
}
});
it("links to the public terms and privacy pages from the footer", async () => {
const html = await renderHtml("/");
expect(html).toMatch(/<a[^>]*href="\/terms"[^>]*>Условия использования<\/a>/);
expect(html).toMatch(/<a[^>]*href="\/privacy"[^>]*>Конфиденциальность<\/a>/);
});
it("marks the active cabinet section with aria-current", async () => {
expect(currentLinkText(await renderHtml("/candidate"))).toEqual(["Главная"]);
// The results are a sub-section of the test: the switch segment is the
@@ -256,7 +265,7 @@ describe("product readiness", () => {
expect(html).toContain("Регистрация, вход и основные сценарии кабинетов уже работают");
expect(html).not.toContain("каркас");
expect(html).not.toContain("Пустой каркас");
expect(html).toContain("Пока не готово");
expect(html).toContain("Список доступен в кабинете работодателя");
expect(html).toMatch(/<a[^>]*href="\/login"[^>]*>Войти<\/a>/);
expect(html).toMatch(/<a[^>]*href="\/register"[^>]*>Зарегистрироваться<\/a>/);
// The API liveness check lives on the technical page, not on the landing.