mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-04 21:21:27 +01:00
Resume unnamed first agents at the naming step
This commit is contained in:
1 parent
9a5d1e8cfd
commit
9b759bc07e
5 files changed
+33
-3
No files matched your search
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user