收口 Makelore 客户端变更
Some checks failed
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
2026-08-12 22:35:06 +08:00
parent 253bad8b40
commit f4113a872f
232 changed files with 4617 additions and 20121 deletions

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);