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')
|
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('not.exist')
|
||||||
.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.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')
|
||||||
|
|
|
||||||
|
|
@ -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', () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue