Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import React from 'react';
import { render, screen } from '@testing-library/react';
import { SteerReceipt as Receipt } from '@librechat/chat/components';
jest.mock('@librechat/client', () => ({
...jest.requireActual('@librechat/client'),
useLocalize: () => (key: string) => {
const english: Record<string, string> = jest.requireActual('~/locales/en/translation.json');
return english[key] ?? key;
},
InfoHoverCard: ({ text, children }: { text: string; children: React.ReactNode }) => (
<span aria-label={text}>{children}</span>
),
}));
describe('Steer receipt copy', () => {
it('describes accepted guidance as waiting to apply', () => {
render(<Receipt state="delivered" />);
expect(screen.getByTestId('steer-receipt')).toHaveTextContent('Waiting to apply');
});
it('explains that accepted guidance has not reached the agent yet', () => {
render(<Receipt state="delivered" />);
expect(
screen.getByLabelText(
'Waiting to apply. Your message was accepted and will reach the agent at a safe insertion point after the current tool or reasoning step.',
),
).toBeInTheDocument();
});
});