Resume unnamed first agents at the naming step

This commit is contained in:
Scott Tong committed 2026-12-02 12:42:18 -08:00
1 parent 9a5d1e8cfd
commit 9b759bc07e
5 files changed
+33 -3

No files matched your search

+5
View File
@@ -31,6 +31,11 @@ test.describe("Onboarding wizard", () => {
const readDraft = async () =>
(await (await page.request.get(`/api/agents/${draft.id}?companyId=${companyId}`)).json()) as { name: string };
// The dashboard resumes the provisional record even if the browser closed
// before its owner entered a name.
const company = await (await page.request.get(`/api/companies/${companyId}`)).json();
await page.goto(`/${company.issuePrefix}/dashboard`);
await expect(nameField).toBeVisible();
await nameField.fill("Ada");
await expect.poll(async () => (await readDraft()).name, { timeout: 15_000 }).toBe("Ada");