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

+9
View File
@@ -394,12 +394,21 @@ test.describe("candidate without a confirmed grade with the real backend", () =>
// Two declared specializations in the profile, none confirmed by a test.
await page.goto("/candidate/profile");
await page.getByLabel("Имя и фамилия").fill("Тестовый кандидат");
// The profile is a form in steps: roles are the second step.
await page.getByRole("button", { name: "Далее", exact: true }).click();
await expect(page.getByRole("heading", { name: /\. Роли$/ })).toBeFocused();
await page.getByRole("button", { name: "Добавить специализацию" }).click();
await page.getByRole("button", { name: "Добавить специализацию" }).click();
await page.getByLabel("Специализация").nth(0).selectOption("backend");
await page.getByLabel("Специализация").nth(1).selectOption("network_engineer");
await page.getByLabel("Моя оценка уровня").nth(0).selectOption("middle");
await page.getByLabel("Моя оценка уровня").nth(1).selectOption("junior");
for (const heading of ["Опыт", "Навыки", "Условия", "Проверка"]) {
await page.getByRole("button", { name: "Далее", exact: true }).click();
await expect(
page.getByRole("heading", { name: new RegExp(`\\. ${heading}$`) }),
).toBeFocused();
}
const profileSaved = page.waitForResponse(apiResponse("PUT", "/api/v1/me/profile"));
await page.getByRole("button", { name: "Сохранить профиль" }).click();
expect((await profileSaved).status()).toBe(200);