diff --git a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts index 935afb3c83..d3dcd8fea0 100644 --- a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts +++ b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts @@ -115,6 +115,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"]')