Fix TradingViewChart test mocks (timeScale) and add UI test for executionPlan rendering in StockDetail

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-16 13:55:06 +02:00
parent b9711f2517
commit 5bb41a50dc
2 changed files with 50 additions and 0 deletions
@@ -25,6 +25,7 @@ describe("TradingViewChart", () => {
// Update the mock's setData to track calls
const mockSeries = { setData: mockSetData };
mockCreateChart.mockReturnValue({
timeScale: () => ({ applyOptions: vi.fn(), fitContent: vi.fn() }),
addSeries: vi.fn(() => mockSeries),
remove: vi.fn(),
});