storkit: merge 454_story_deduplicate_work_item_display_in_web_ui_story_panel
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user