fix(run): update file headers to reflect per-tool setup, add resume-last test
This commit is contained in:
@@ -329,4 +329,15 @@ describe("RunSetup — per-tool fields", () => {
|
||||
);
|
||||
expect(onStart.mock.calls[0]?.[0]?.permissionMode).toBeUndefined();
|
||||
});
|
||||
|
||||
it("calls onResumeLast when a codex lane's resume-last button is clicked", async () => {
|
||||
const onResumeLast = vi.fn();
|
||||
const user = userEvent.setup();
|
||||
renderSetup({ tool: "codex", onResumeLast });
|
||||
// Switch to resume mode
|
||||
fireEvent.click(screen.getByText(i18n.t("run:resume.resumeOption")));
|
||||
// Click the resume-last button
|
||||
await user.click(screen.getByText(i18n.t("run:resume.lastOption")));
|
||||
expect(onResumeLast).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user