feat(ui): redesign job workspace sections

This commit is contained in:
cesnimda
2026-10-07 01:58:31 +02:00
parent acd1d94684
commit ac6d78289d
123 changed files with 2842 additions and 205 deletions
+4 -3
View File
@@ -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.");