storkit: merge 454_story_deduplicate_work_item_display_in_web_ui_story_panel

This commit is contained in:
dave
2026-04-02 10:57:18 +00:00
parent f7f4e8f95b
commit f8d7438eec
3 changed files with 142 additions and 14 deletions
+7 -7
View File
@@ -1643,7 +1643,9 @@ describe("Slash command handling (Story 374)", () => {
});
it("AC: /help calls botCommand and displays response", async () => {
mockedApi.botCommand.mockResolvedValue({ response: "Available commands: status, help, ..." });
mockedApi.botCommand.mockResolvedValue({
response: "Available commands: status, help, ...",
});
render(<Chat projectPath="/tmp/project" onCloseProject={vi.fn()} />);
await waitFor(() => expect(capturedWsHandlers).not.toBeNull());
@@ -1660,11 +1662,7 @@ describe("Slash command handling (Story 374)", () => {
});
await waitFor(() => {
expect(mockedApi.botCommand).toHaveBeenCalledWith(
"help",
"",
undefined,
);
expect(mockedApi.botCommand).toHaveBeenCalledWith("help", "", undefined);
});
expect(lastSendChatArgs).toBeNull();
});
@@ -1723,7 +1721,9 @@ describe("Bug 450: WebSocket error messages displayed in chat", () => {
);
});
const link = await screen.findByRole("link", { name: /https:\/\/example\.com\/oauth\/login/ });
const link = await screen.findByRole("link", {
name: /https:\/\/example\.com\/oauth\/login/,
});
expect(link).toBeInTheDocument();
expect(link).toHaveAttribute("href", "https://example.com/oauth/login");
});