test donate links
This commit is contained in:
parent
143fae9b93
commit
195c06417e
1 changed files with 20 additions and 0 deletions
|
|
@ -12,6 +12,16 @@ describe('homepage hero', () => {
|
|||
})
|
||||
})
|
||||
|
||||
it('links the navbar Donate item to Causematch', () => {
|
||||
const donateHref = 'https://causematch.com/pilzno_donate'
|
||||
|
||||
cy.contains('header.site-header a', 'Donate')
|
||||
.should('be.visible')
|
||||
.and('have.attr', 'href', donateHref)
|
||||
.and('have.attr', 'target', '_blank')
|
||||
.and('have.attr', 'rel', 'noopener')
|
||||
})
|
||||
|
||||
it('opens the Torah Media page from the header navigation', () => {
|
||||
cy.contains('header.site-header a', 'Torah Media').click()
|
||||
|
||||
|
|
@ -573,6 +583,16 @@ describe('homepage get involved and footer', () => {
|
|||
})
|
||||
})
|
||||
|
||||
it('links the footer Donate item to Causematch', () => {
|
||||
const donateHref = 'https://causematch.com/pilzno_donate'
|
||||
|
||||
cy.contains('[data-cy="footer"] a', 'Donate')
|
||||
.should('be.visible')
|
||||
.and('have.attr', 'href', donateHref)
|
||||
.and('have.attr', 'target', '_blank')
|
||||
.and('have.attr', 'rel', 'noopener')
|
||||
})
|
||||
|
||||
it('links footer social icons to the contact social pages', () => {
|
||||
const expectedSocialLinks = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue