test get involved and footer render

This commit is contained in:
Yisroel Baum 2026-05-16 22:07:42 +03:00
parent d24e0940c1
commit b54522ddfc
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -192,3 +192,31 @@ describe('homepage start your journey ctas', () => {
})
})
})
describe('homepage get involved and footer', () => {
beforeEach(() => {
cy.visit('/')
})
it('renders the newsletter signup form', () => {
cy.get('[data-cy="get-involved"]').within(() => {
cy.contains('h2', 'Get Involved').should('be.visible')
cy.contains(
'Subscribe for updates as we release new content',
).should('be.visible')
cy.get('input[name="fullName"]').should('be.visible')
cy.get('input[name="email"]').should('be.visible')
cy.contains('button', 'Submit').should('be.visible')
})
})
it('renders the footer with links and copyright', () => {
cy.get('[data-cy="footer"]').within(() => {
cy.contains('Torah Media').should('be.visible')
cy.contains('About').should('be.visible')
cy.contains('Donate').should('be.visible')
cy.contains('Contact').should('be.visible')
cy.contains(/Rabbi Gerzi 2025/).should('be.visible')
})
})
})