test projects grid renders
This commit is contained in:
parent
c4c1ccf316
commit
39bd4cc5f5
1 changed files with 21 additions and 0 deletions
|
|
@ -148,3 +148,24 @@ describe('homepage sponsor strip', () => {
|
|||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('homepage projects grid', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('/')
|
||||
})
|
||||
|
||||
it('renders the heading and four project cards', () => {
|
||||
cy.get('[data-cy="projects"]').within(() => {
|
||||
cy.contains('h2', 'Projects').should('be.visible')
|
||||
cy.get('[data-cy="project-card"]').should('have.length', 4)
|
||||
cy.contains('h3', 'Chaburot').should('be.visible')
|
||||
cy.contains('group learning sessions').should('be.visible')
|
||||
cy.contains('h3', 'Pilzno Work Inspired').should('be.visible')
|
||||
cy.contains('healthy relationship to work').should('be.visible')
|
||||
cy.contains('h3', 'Shul').should('be.visible')
|
||||
cy.contains('Pilzno Beis Dovid').should('be.visible')
|
||||
cy.contains('h3', 'New Building').should('be.visible')
|
||||
cy.contains('Beit Shemesh municipality').should('be.visible')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue