test media navigation
This commit is contained in:
parent
356725ceeb
commit
5d52f368ea
1 changed files with 13 additions and 0 deletions
|
|
@ -12,6 +12,19 @@ describe('homepage hero', () => {
|
|||
})
|
||||
})
|
||||
|
||||
it('opens the Torah Media page from the header navigation', () => {
|
||||
cy.contains('header a', 'Torah Media').click()
|
||||
|
||||
cy.location('pathname').should('eq', '/media')
|
||||
cy.get('header').within(() => {
|
||||
cy.contains('Torah Media').should('be.visible')
|
||||
cy.contains('About').should('be.visible')
|
||||
cy.contains('Contact').should('be.visible')
|
||||
cy.contains('Donate').should('be.visible')
|
||||
})
|
||||
cy.contains('h1', 'Torah Media').should('be.visible')
|
||||
})
|
||||
|
||||
it('renders the hero headline with italic emphasis', () => {
|
||||
cy.get('[data-cy="hero"]').within(() => {
|
||||
cy.contains('upgrade our lives').should('be.visible')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue