test donate links

This commit is contained in:
Yisroel Baum 2026-06-14 22:18:08 +03:00
parent 143fae9b93
commit 195c06417e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -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 = [
{