test subscription removal

This commit is contained in:
Yisroel Baum 2026-07-03 15:21:08 +03:00
parent eda6d8396b
commit fa2a88ecbc
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 10 additions and 19 deletions

View file

@ -108,16 +108,13 @@ describe('about page', () => {
cy.get('[data-cy="haskamah-image"]').first().should('be.visible') cy.get('[data-cy="haskamah-image"]').first().should('be.visible')
}) })
it('renders the get involved form and footer', () => { it('does not render the get involved subscription section', () => {
cy.get('[data-cy="get-involved"]').within(() => { cy.get('[data-cy="get-involved"]').should('not.exist')
cy.contains('h2', 'Get Involved').should('be.visible')
cy.contains('Subscribe for updates as we release new content') cy.contains('Subscribe for updates as we release new content')
.should('be.visible') .should('not.exist')
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.get('[data-cy="footer"]').within(() => {
cy.contains('Torah Media').should('be.visible') cy.contains('Torah Media').should('be.visible')
cy.contains('About').should('be.visible') cy.contains('About').should('be.visible')

View file

@ -561,16 +561,10 @@ describe('homepage get involved and footer', () => {
cy.visit('/') cy.visit('/')
}) })
it('renders the newsletter signup form', () => { it('does not render the newsletter signup section', () => {
cy.get('[data-cy="get-involved"]').within(() => { cy.get('[data-cy="get-involved"]').should('not.exist')
cy.contains('h2', 'Get Involved').should('be.visible') cy.contains('Subscribe for updates as we release new content')
cy.contains( .should('not.exist')
'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', () => { it('renders the footer with links and copyright', () => {