mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
test: trim chat action render case
This commit is contained in:
@@ -261,21 +261,6 @@ describe("chat view", () => {
|
||||
expect(onAbort).toHaveBeenCalledTimes(1);
|
||||
expect(container.textContent).not.toContain("New session");
|
||||
|
||||
render(
|
||||
renderChat(
|
||||
createProps({
|
||||
canAbort: true,
|
||||
sending: false,
|
||||
stream: null,
|
||||
onAbort: vi.fn(),
|
||||
}),
|
||||
),
|
||||
container,
|
||||
);
|
||||
stopButton = container.querySelector<HTMLButtonElement>('button[title="Stop"]');
|
||||
expect(stopButton).not.toBeNull();
|
||||
expect(container.textContent).not.toContain("New session");
|
||||
|
||||
const onNewSession = vi.fn();
|
||||
render(
|
||||
renderChat(
|
||||
|
||||
Reference in New Issue
Block a user