feat(cv): rebuild professional resume studio
This commit is contained in:
@@ -310,6 +310,8 @@ test("Career Workspace loads from the authenticated application shell", async ({
|
||||
await page.getByRole("link", { name: "Open CV Builder" }).click();
|
||||
await expect(page).toHaveURL(/\/career\/builder$/);
|
||||
await page.getByRole("button", { name: "New CV" }).first().click();
|
||||
await expect(page.getByRole("dialog", { name: "Create a CV" })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Create CV" }).click();
|
||||
await expect(page).toHaveURL(/\/career\/builder\/\d+$/);
|
||||
await expect(page.getByLabel("CV name")).toBeVisible();
|
||||
|
||||
@@ -319,6 +321,11 @@ test("Career Workspace loads from the authenticated application shell", async ({
|
||||
for (const width of [375, 768, 1440]) {
|
||||
await page.setViewportSize({ width, height: 900 });
|
||||
await expect(page.getByLabel("CV name")).toBeVisible();
|
||||
if (width === 375) {
|
||||
await page.getByRole("button", { name: "Preview" }).click();
|
||||
await expect(page.getByTitle("CV preview page 1")).toBeVisible();
|
||||
await page.getByRole("button", { name: "Edit" }).click();
|
||||
}
|
||||
const overflow = await page.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);
|
||||
expect(overflow).toBeLessThanOrEqual(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user