fix(frontend): keep candidate progress beside forms

This commit is contained in:
TakuyaYagam1 committed 2026-10-11 22:56:02 +03:00
1 parent e4be4a3956
commit 6dd5a0d54a
10 files changed
+259 -206

No files matched your search

@@ -133,6 +133,14 @@ test("shows the populated specialization catalog on desktop and mobile", async (
).toHaveCount(1);
await specialization.selectOption("backend");
await expect(page.getByText(/Проверка опубликована для уровней:/)).toBeVisible();
const progress = page.getByRole("region", { name: "Профиль, анкета и тест", exact: true });
const answers = page.getByRole("region", { name: "Ответы кандидата", exact: true });
await expect(progress).toBeVisible();
await expect(answers).toBeVisible();
const desktopProgress = await progress.boundingBox();
const desktopAnswers = await answers.boundingBox();
if (!desktopProgress || !desktopAnswers) throw new Error("Candidate sections must be visible");
expect(desktopProgress.x + desktopProgress.width).toBeLessThanOrEqual(desktopAnswers.x);
await page.screenshot({
path: testInfo.outputPath("questionnaire-catalog-desktop.png"),
fullPage: true,
@@ -140,6 +148,10 @@ test("shows the populated specialization catalog on desktop and mobile", async (
await page.setViewportSize({ width: 390, height: 844 });
await expect(specialization).toBeVisible();
const mobileProgress = await progress.boundingBox();
const mobileAnswers = await answers.boundingBox();
if (!mobileProgress || !mobileAnswers) throw new Error("Candidate sections must be visible");
expect(mobileProgress.y + mobileProgress.height).toBeLessThanOrEqual(mobileAnswers.y);
await page.screenshot({
path: testInfo.outputPath("questionnaire-catalog-mobile.png"),
fullPage: true,