fix(frontend): refresh the landing page, keep the employer sidebar full height, and align the candidate home

This commit is contained in:
shira committed 2026-10-09 17:30:39 +03:00
1 parent ac57c05aca
commit a5990d3fc6
12 files changed
+460 -51

No files matched your search

+22
View File
@@ -438,6 +438,28 @@ test.describe("candidate home states with a stubbed API", () => {
await captureReviewScreenshots(page, "candidate-home-category");
});
test("states one confirmed category in every block when the availability read has none", async ({
page,
}) => {
await mockCandidateApi(page, {
step: "candidate_consents",
profileVersion: 1,
declared: { specialization: "backend", grade: "junior" },
results: [realResult("confirmed")],
});
await page.goto("/candidate");
await expect(page.getByRole("heading", { name: "Категория получена" })).toBeVisible();
await expect(page.getByText("Подтверждено тестом: Junior").first()).toBeVisible();
await expect(page.getByText("Есть подтвержденная категория")).toBeVisible();
await expect(page.getByText("Уровень подтвержден: Backend, Junior.")).toBeVisible();
await expect(page.getByRole("heading", { name: "Подтвердите уровень тестом" })).toHaveCount(0);
await expect(page.getByText("Пока не подтверждена")).toHaveCount(0);
await expect(page.getByText("Еще не пройден")).toHaveCount(0);
await expect(page.getByText(/Сохраненный шаг аккаунта/)).toHaveCount(0);
await expect(page.getByRole("alert")).toHaveCount(0);
});
test("shows an open card and an active search status exactly as the API returns them", async ({
page,
}) => {