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 18, 2024
1 parent bc62291 commit 173ca8f
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 @@ -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"]')
Expand Down

0 comments on commit 173ca8f

Please sign in to comment.