收口 Makelore 客户端变更
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman committed 2026-08-12 22:43:09 +08:00
1 parent 253bad8b40
commit f4113a872f
232 files changed
+4617 -20121

No files matched your search

+17 -1
View File
@@ -40,6 +40,22 @@ describe('ExecutionGraphCard', () => {
expect(summary).not.toHaveClass('text-foreground');
});
it('places the expand control after the duration summary', () => {
render(
<ExecutionGraphCard
agentLabel="Makelore"
steps={[]}
active={false}
durationMs={2_500}
/>,
);
const button = screen.getByTestId('chat-execution-graph-expand');
const summary = button.querySelector('span.truncate');
expect(summary).not.toBeNull();
expect(summary?.nextElementSibling).toHaveClass('h-5', 'w-5');
});
it('shows the current process summary while the graph is active', () => {
render(
<ExecutionGraphCard
@@ -82,7 +98,7 @@ describe('ExecutionGraphCard', () => {
/>,
);
expect(screen.queryByText(/README\.md/)).not.toBeInTheDocument();
expect(screen.getByText(/README\.md/).closest('[data-state]')).toHaveAttribute('data-state', 'closed');
fireEvent.click(screen.getByRole('button', { name: /read/i }));
expect(onStepExpandedChange).toHaveBeenCalledWith(visibilityId, true);