1
0
mirror of synced 2025-12-22 11:26:57 -05:00
Files
docs/tests/rendering/footer.js
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

24 lines
916 B
JavaScript

const { getDOM } = require('../helpers')
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
describe('footer', () => {
jest.setTimeout(10 * 60 * 1000)
describe('"contact us" link', () => {
test('leads to dotcom support on dotcom pages', async () => {
const $ = await getDOM('/en/actions')
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
})
test('leads to Enterprise support on Enterprise pages', async () => {
const $ = await getDOM(`/en/enterprise/${enterpriseServerReleases.latest}`)
expect($('a#contact-us').attr('href')).toBe('https://enterprise.github.com/support')
})
test('leads to dotcom support on 404 pages', async () => {
const $ = await getDOM('/en/delicious-snacks/donuts.php')
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
})
})
})