diff --git a/src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/DetailsPane.test.tsx b/src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/DetailsPane.test.tsx index e5bfec6bed5..3b2669703c1 100644 --- a/src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/DetailsPane.test.tsx +++ b/src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/DetailsPane.test.tsx @@ -129,7 +129,7 @@ describe('', () => { ).toBeInTheDocument() }) - test('should display node caption as panel title', async () => { + test('should display node/rel caption as panel title', async () => { renderComponent({ propertyList: [{ key: 'name', value: 'New Node', type: 'string' }] }) diff --git a/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.test.tsx b/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.test.tsx index dd84aa7c8d3..f5b6d94507c 100644 --- a/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.test.tsx +++ b/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.test.tsx @@ -129,4 +129,14 @@ describe('', () => { screen.getByRole('button', { name: 'Show 3 more' }) ).toBeInTheDocument() }) + + test('should display node/rel caption as panel title', async () => { + renderComponent({ + propertyList: [{ key: 'name', value: 'New Node', type: 'string' }] + }) + + expect(screen.getByTestId('viz-details-pane-title').textContent).toEqual( + 'New Node' + ) + }) }) diff --git a/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.tsx b/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.tsx index 66e95f8f17d..cc86d931790 100644 --- a/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.tsx +++ b/src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.tsx @@ -80,7 +80,7 @@ export function DefaultDetailsPane({ return ( - + {`${paneTitle}`}