feat(cv): redesign editor frame and section navigation
This commit is contained in:
@@ -509,10 +509,14 @@ test("the Code template exports a long structured CV as searchable multi-page PD
|
||||
|
||||
await page.goto(`/career/builder/${variant.id}`);
|
||||
await expect(page.getByLabel("CV name")).toHaveValue("Code PDF Verification");
|
||||
await expect(page.getByRole("tab", { name: "Template" })).toHaveAttribute("aria-selected", "true");
|
||||
await expect(page.getByRole("tab", { name: "Content" })).toHaveAttribute("aria-selected", "true");
|
||||
await page.getByRole("tab", { name: "Content" }).click();
|
||||
await page.getByRole("button", { name: "Expand Experience" }).click();
|
||||
await page.getByRole("button", { name: "Expand Education" }).click();
|
||||
await expect(page.getByRole("button", { name: "Collapse Experience" })).toBeVisible();
|
||||
// Open the second disclosure with its keyboard contract while the long first
|
||||
// section expands, avoiding a pointer target moving during the Collapse reflow.
|
||||
await page.getByRole("button", { name: "Expand Education" }).focus();
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(page.getByRole("button", { name: "Collapse Experience" })).toBeVisible();
|
||||
await expect(page.getByRole("button", { name: "Collapse Education" })).toBeVisible();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user