diff --git a/datahub-web-react/src/app/lineage/LineageEntityNode.tsx b/datahub-web-react/src/app/lineage/LineageEntityNode.tsx index 5b39d6aaf1..4526e3a225 100644 --- a/datahub-web-react/src/app/lineage/LineageEntityNode.tsx +++ b/datahub-web-react/src/app/lineage/LineageEntityNode.tsx @@ -132,6 +132,10 @@ export default function LineageEntityNode({ areColumnsCollapsed, ); + const entityName = + capitalizeFirstLetterOnly(node.data.subtype) || + (node.data.type && entityRegistry.getEntityName(node.data.type)); + return ( {unexploredHiddenChildren && (isHovered || isSelected) ? ( @@ -335,9 +339,8 @@ export default function LineageEntityNode({ {' '} |{' '} - - {capitalizeFirstLetterOnly(node.data.subtype) || - (node.data.type && entityRegistry.getEntityName(node.data.type))} + + {entityName} {expandTitles ? ( diff --git a/smoke-test/tests/cypress/cypress/e2e/siblings/siblings.js b/smoke-test/tests/cypress/cypress/e2e/siblings/siblings.js index b7d4870399..00de08e77a 100644 --- a/smoke-test/tests/cypress/cypress/e2e/siblings/siblings.js +++ b/smoke-test/tests/cypress/cypress/e2e/siblings/siblings.js @@ -113,9 +113,11 @@ describe('siblings', () => { cy.clickOptionWithTestId('compress-lineage-toggle'); // check the subtypes - cy.get('text:contains(View)').should('have.length', 2); - cy.get('text:contains(Table)').should('have.length', 0); - cy.get('text:contains(Seed)').should('have.length', 1); + cy.get('[data-testid="Seed"]').should('have.length', 1); + // center counts twice since we secretely render two center nodes, plus the downstream bigquery + cy.get('[data-testid="View"]').should('have.length', 3); + cy.get('[data-testid="Table"]').should('have.length', 0); + // check the names cy.get('text:contains(raw_orders)').should('have.length', 1);