diff --git a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts index 1b1d7da16f..48afd94441 100644 --- a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts +++ b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts @@ -797,3 +797,12 @@ describe('userFeedback', () => { }) }) }) + +describe('When the metadata does not exists', () => { + beforeEach(() => { + cy.visit('/dataset/xyz') + }) + it('should display an error message', () => { + cy.get('gn-ui-search-results-error').should('exist') + }) +}) 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 b55e6ed7e1..a741ca4b6a 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 @@ -148,13 +148,17 @@
- -