1
0
mirror of synced 2025-12-31 06:02:42 -05:00
Files
docs/tests/rendering/footer.js
Jason Etcovitch 5d09adb106 Add/use small-footer for Actions landing page (#16265)
* Add/use small-footer

* Fix borked HTML

* Extract scripts to new include

* Add spacing

* Fix some padding

* Fix a test that uses /actions

* Fix old links

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Update /developers in general footer

* Don't hard code free-pro-team

* Use the small-footer everywhere

* Tweak border

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-11-03 13:12:25 -05:00

25 lines
1.0 KiB
JavaScript

const { getDOM } = require('../helpers')
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
describe('footer', () => {
jest.setTimeout(10 * 60 * 1000)
describe('"contact us" link', () => {
test('leads to dotcom support on dotcom pages', async () => {
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github`)
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')
})
})
})