diff --git a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts index d02385ae12..0e9813850e 100644 --- a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts +++ b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts @@ -575,6 +575,15 @@ describe('dataset pages', () => { }) }) }) + + describe('When there is no link', () => { + beforeEach(() => { + cy.visit('/dataset/a3774ef6-809d-4dd1-984f-9254f49cbd0a') + }) + it('display the error datasetHasNoLink error block', () => { + cy.get('[data-test="dataset-has-no-link-block"]').should('exist') + }) + }) }) }) }) @@ -795,7 +804,7 @@ describe('When the metadata does not exists', () => { cy.visit('/dataset/xyz') }) it('should display an error message', () => { - cy.get('gn-ui-search-results-error').should('exist') + cy.get('gn-ui-error').should('exist') cy.screenshot({ capture: 'viewport' }) }) }) diff --git a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html index a741ca4b6a..efc77e05c4 100644 --- a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html +++ b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html @@ -133,7 +133,12 @@ - + + +