test real media sets
This commit is contained in:
parent
d385a37266
commit
6e73d64c20
1 changed files with 3 additions and 15 deletions
|
|
@ -1,21 +1,9 @@
|
|||
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')
|
||||
|
||||
it('fetches and renders seeded set cards', () => {
|
||||
cy.visit('/media')
|
||||
|
||||
cy.wait('@fetchSets')
|
||||
cy.get('[data-cy="media-set-card"]').should('have.length', 1)
|
||||
cy.get('[data-cy="media-set-card"]', { timeout: 10000 })
|
||||
.should('have.length', 1)
|
||||
cy.contains('[data-cy="media-set-card"]', 'Baderech HaAvodah')
|
||||
.should('be.visible')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue