feat(frontend): redesign the candidate cabinet with step-by-step profile and questionnaire forms
This commit is contained in:
1 parent
15590d127c
commit
c836d02ea3
77 files changed
+5409
-1618
No files matched your search
@@ -606,11 +606,18 @@ async function grantC3(page: Page): Promise<void> {
|
||||
async function saveAssessmentQuestionnaire(page: Page): Promise<void> {
|
||||
await page.goto("/candidate/questionnaire");
|
||||
await expect(page.getByRole("heading", { name: "Ответы кандидата" })).toBeVisible();
|
||||
// The questionnaire is a form in steps; "Далее" moves the focus to the next heading.
|
||||
await page.getByLabel("Специализация", { exact: true }).selectOption("backend");
|
||||
await page.getByRole("button", { name: "Далее", exact: true }).click();
|
||||
await expect(page.getByRole("heading", { name: /\. Уровень и опыт$/ })).toBeFocused();
|
||||
await page.getByLabel("Моя оценка уровня").selectOption("junior");
|
||||
await page.getByRole("checkbox", { name: "Go", exact: true }).check();
|
||||
await page.getByRole("checkbox", { name: "Python", exact: true }).check();
|
||||
await page.getByRole("button", { name: "Далее", exact: true }).click();
|
||||
await expect(page.getByRole("heading", { name: /\. Формат работы$/ })).toBeFocused();
|
||||
await page.getByRole("checkbox", { name: "Удаленно", exact: true }).check();
|
||||
await page.getByRole("button", { name: "Далее", exact: true }).click();
|
||||
await expect(page.getByRole("heading", { name: /\. Проверка и сохранение$/ })).toBeFocused();
|
||||
const response = page.waitForResponse(
|
||||
(item) =>
|
||||
item.request().method() === "PUT" &&
|
||||
|
||||
Reference in new issue
Block a user