feat(frontend): redesign the candidate cabinet with step-by-step profile and questionnaire forms

This commit is contained in:
shira committed 2026-10-10 09:50:27 +03:00
1 parent 15590d127c
commit c836d02ea3
77 files changed
+5409 -1618

No files matched your search

@@ -112,4 +112,17 @@ describe("questionnaire form", () => {
expect(markup).toContain('value="senior" selected=""');
expect(markup).not.toMatch(/<button\b[^>]*>[^<]*(?:Перейти|Начать) проверку/);
});
it("shows the first of four steps and keeps the other steps mounted but hidden", () => {
const markup = renderQuestionnaireForm("backend");
expect(markup).toContain("Шаг 1 из 4");
expect(markup).toMatch(/<li[^>]*aria-current="step"[^>]*>[\s\S]*?Направления/);
// Every step is in the markup, so field ids and server errors stay valid;
// only the first one is shown.
expect(markup.match(/<section[^>]*hidden=""/g)).toHaveLength(3);
expect(markup).toContain("Моя оценка уровня");
expect(markup).toContain(">Далее<");
expect(markup).not.toContain("Сохранить анкету");
});
});