fix(FN-2404): scope onboarding first-task creation to active project
- Guard onboarding first-task creation when no project is selected - Pass projectId to createTask so onboarding tasks are created in the active project - Update AppModals wiring tests to verify projectId forwarding for selected and unselected states - Expand onboarding modal and flow regression tests to assert project-scoped task creation calls
This commit is contained in:
@@ -1476,6 +1476,16 @@ describe("ModelOnboardingModal", () => {
|
||||
|
||||
expect(screen.queryByTestId("onboarding-task-error")).toBeNull();
|
||||
expect(mockCreateTask).toHaveBeenCalledTimes(2);
|
||||
expect(mockCreateTask).toHaveBeenNthCalledWith(
|
||||
1,
|
||||
{ description: "Build auth" },
|
||||
"proj_123",
|
||||
);
|
||||
expect(mockCreateTask).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
{ description: "Build auth" },
|
||||
"proj_123",
|
||||
);
|
||||
});
|
||||
|
||||
it("disables first-task submit button while creating the task", async () => {
|
||||
|
||||
Reference in New Issue
Block a user