收口 Makelore 客户端变更
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user