diff --git a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
index 2862cb59c9..e490683a5e 100644
--- a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
+++ b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
@@ -103,6 +103,20 @@ describe('dataset pages', () => {
expect(text).not.to.equal('')
})
})
+ it.only('should display the thumbnail image and magnify', () => {
+ cy.get('datahub-record-metadata')
+ .find('[id="about"]')
+ .find('gn-ui-image-overlay-preview')
+ .as('overlay')
+ .should('have.length', 1)
+ cy.get('@overlay').find('gn-ui-button').click()
+ cy.get('[class="basicLightbox__placeholder"]')
+ .as('lightbox')
+ .find('img')
+ .should('have.length', 1)
+ cy.get('body').click()
+ cy.get('@lightbox').should('have.length', 0)
+ })
it('should display the contact details', () => {
cy.get('datahub-record-metadata')
.find('[id="about"]')
diff --git a/apps/datahub/project.json b/apps/datahub/project.json
index aa1c97bd2d..7d3ed4e6a4 100644
--- a/apps/datahub/project.json
+++ b/apps/datahub/project.json
@@ -31,6 +31,7 @@
"tailwind.base.css",
"apps/datahub/src/styles.css",
"node_modules/tippy.js/dist/tippy.css",
+ "node_modules/basiclightbox/dist/basicLightbox.min.css",
"node_modules/ol/ol.css",
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
],
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 c07d56fccc..c4e7a0fcb1 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
@@ -33,13 +33,21 @@
[metadataQualityDisplay]="metadataQualityDisplay"
>
-