feat(ui): redesign job workspace sections
This commit is contained in:
@@ -260,10 +260,11 @@ test("the dedicated application workspace survives deep links, long data and uns
|
||||
await expect(page).toHaveURL(new RegExp(`/jobs/${job.id}$`));
|
||||
|
||||
const workspaceNav = page.getByRole("tablist", { name: "Workspace sections" });
|
||||
await workspaceNav.getByRole("tab", { name: "Cover Letter", exact: true }).click();
|
||||
await expect(page).toHaveURL(new RegExp(`/jobs/${job.id}\\?section=cover-letter$`));
|
||||
await workspaceNav.getByRole("tab", { name: "Application", exact: true }).click();
|
||||
await page.getByRole("tab", { name: "Answers & message draft", exact: true }).click();
|
||||
await expect(page).toHaveURL(new RegExp(`/jobs/${job.id}\\?section=application&sub=answers$`));
|
||||
await page.getByLabel("Application answer", { exact: true }).fill("A reviewed answer that must not be lost.");
|
||||
await workspaceNav.getByRole("tab", { name: "Analysis", exact: true }).click();
|
||||
await workspaceNav.getByRole("tab", { name: "Match", exact: true }).click();
|
||||
await expect(page.getByRole("dialog", { name: "Unsaved application changes" })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Keep editing" }).click();
|
||||
await expect(page.getByLabel("Application answer", { exact: true })).toHaveValue("A reviewed answer that must not be lost.");
|
||||
|
||||
Reference in New Issue
Block a user