11 lines
353 B
TypeScript
11 lines
353 B
TypeScript
describe('removed contact page', () => {
|
|
it('redirects direct contact visits to the homepage', () => {
|
|
cy.visit('/contact')
|
|
|
|
cy.location('pathname').should('eq', '/')
|
|
cy.get('[data-cy="contact-hero"]').should('not.exist')
|
|
cy.get('header.site-header').within(() => {
|
|
cy.contains('a', 'Contact').should('not.exist')
|
|
})
|
|
})
|
|
})
|