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', () => {
|
describe('media page sets', () => {
|
||||||
it('fetches and renders set cards', () => {
|
it('fetches and renders seeded set cards', () => {
|
||||||
cy.intercept('GET', '**/api/sets', {
|
|
||||||
statusCode: 200,
|
|
||||||
body: {
|
|
||||||
sets: [
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: 'Baderech HaAvodah',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}).as('fetchSets')
|
|
||||||
|
|
||||||
cy.visit('/media')
|
cy.visit('/media')
|
||||||
|
|
||||||
cy.wait('@fetchSets')
|
cy.get('[data-cy="media-set-card"]', { timeout: 10000 })
|
||||||
cy.get('[data-cy="media-set-card"]').should('have.length', 1)
|
.should('have.length', 1)
|
||||||
cy.contains('[data-cy="media-set-card"]', 'Baderech HaAvodah')
|
cy.contains('[data-cy="media-set-card"]', 'Baderech HaAvodah')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue