test media card link
This commit is contained in:
parent
2b489d4a44
commit
bf25822463
1 changed files with 7 additions and 0 deletions
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue