test media card link

This commit is contained in:
Yisroel Baum 2026-05-25 21:54:50 +03:00
parent 2b489d4a44
commit bf25822463
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -13,6 +13,8 @@ describe('media page sets', () => {
cy.get('[data-cy="media-set-card"]', { timeout: 10000 })
.should('have.length', 1)
.first()
.as('baderechCard')
.should('have.attr', 'href', '/element/1')
.within(() => {
cy.get('img[data-cy="media-set-icon"]')
.should('be.visible')
@ -22,5 +24,10 @@ describe('media page sets', () => {
cy.contains('a structured path for inner and outer growth')
.should('be.visible')
})
cy.get('@baderechCard').click()
cy.location('pathname').should('eq', '/element/1')
cy.get('[data-cy="element-page"]').should('be.visible')
cy.contains('h1', 'Element 1').should('be.visible')
})
})