test get involved and footer render
This commit is contained in:
parent
d24e0940c1
commit
b54522ddfc
1 changed files with 28 additions and 0 deletions
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue