Skip to content

Commit 42eba28

Browse files
intel352claude
andcommitted
fix(ui): add required WorkflowNodeData properties in TraceView test mocks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6759e21 commit 42eba28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/components/trace/TraceView.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('TraceView', () => {
159159
it('handleStepClick selects a step on first click (via TraceCanvas)', async () => {
160160
// Make configToNodes return non-empty nodes so TraceCanvas renders
161161
vi.mocked(configToNodes).mockReturnValue({
162-
nodes: [{ id: 'n1', type: 'default', position: { x: 0, y: 0 }, data: {} }],
162+
nodes: [{ id: 'n1', type: 'default', position: { x: 0, y: 0 }, data: { moduleType: 'http.server', label: 'n1', config: {} } }],
163163
edges: [],
164164
});
165165

@@ -177,7 +177,7 @@ describe('TraceView', () => {
177177

178178
it('handleStepClick toggles: clicking same step twice deselects it (via TraceCanvas)', async () => {
179179
vi.mocked(configToNodes).mockReturnValue({
180-
nodes: [{ id: 'n1', type: 'default', position: { x: 0, y: 0 }, data: {} }],
180+
nodes: [{ id: 'n1', type: 'default', position: { x: 0, y: 0 }, data: { moduleType: 'http.server', label: 'n1', config: {} } }],
181181
edges: [],
182182
});
183183

0 commit comments

Comments
 (0)