test media set cards

This commit is contained in:
Yisroel Baum 2026-05-25 20:00:46 +03:00
parent c4b95137e5
commit d385a37266
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -0,0 +1,22 @@
describe('media page sets', () => {
it('fetches and renders set cards', () => {
cy.intercept('GET', '**/api/sets', {
statusCode: 200,
body: {
sets: [
{
id: 1,
name: 'Baderech HaAvodah',
},
],
},
}).as('fetchSets')
cy.visit('/media')
cy.wait('@fetchSets')
cy.get('[data-cy="media-set-card"]').should('have.length', 1)
cy.contains('[data-cy="media-set-card"]', 'Baderech HaAvodah')
.should('be.visible')
})
})