Skip to content

Commit

Permalink
feat(DH): Add e2e test for thumbnail in dataset page
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Jan 23, 2024
1 parent 1c8b2b7 commit 1c5f626
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')
Expand Down

0 comments on commit 1c5f626

Please sign in to comment.