test subscription removal
This commit is contained in:
parent
eda6d8396b
commit
fa2a88ecbc
2 changed files with 10 additions and 19 deletions
|
|
@ -108,16 +108,13 @@ describe('about page', () => {
|
|||
cy.get('[data-cy="haskamah-image"]').first().should('be.visible')
|
||||
})
|
||||
|
||||
it('renders the get involved form and footer', () => {
|
||||
cy.get('[data-cy="get-involved"]').within(() => {
|
||||
cy.contains('h2', 'Get Involved').should('be.visible')
|
||||
it('does not render the get involved subscription section', () => {
|
||||
cy.get('[data-cy="get-involved"]').should('not.exist')
|
||||
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')
|
||||
.should('not.exist')
|
||||
})
|
||||
|
||||
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')
|
||||
|
|
|
|||
|
|
@ -561,16 +561,10 @@ describe('homepage get involved and footer', () => {
|
|||
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('does not render the newsletter signup section', () => {
|
||||
cy.get('[data-cy="get-involved"]').should('not.exist')
|
||||
cy.contains('Subscribe for updates as we release new content')
|
||||
.should('not.exist')
|
||||
})
|
||||
|
||||
it('renders the footer with links and copyright', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue