18 lines
607 B
TypeScript
18 lines
607 B
TypeScript
describe('media page sets', () => {
|
|
it('fetches and renders seeded set cards', () => {
|
|
cy.visit('/media')
|
|
|
|
cy.get('[data-cy="media-set-card"]', { timeout: 10000 })
|
|
.should('have.length', 1)
|
|
.first()
|
|
.within(() => {
|
|
cy.get('img[data-cy="media-set-icon"]')
|
|
.should('be.visible')
|
|
.and('have.attr', 'src')
|
|
.and('include', '/assets/baderech-haavodah-icon.svg')
|
|
cy.contains('h2', 'Baderech HaAvodah').should('be.visible')
|
|
cy.contains('a structured path for inner and outer growth')
|
|
.should('be.visible')
|
|
})
|
|
})
|
|
})
|