Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

footer.js 1.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. const { getDOM } = require('../helpers/supertest')
  2. const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
  3. const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
  4. describe('footer', () => {
  5. jest.setTimeout(10 * 60 * 1000)
  6. describe('"contact us" link', () => {
  7. test('leads to dotcom support on dotcom pages', async () => {
  8. const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github`)
  9. expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
  10. })
  11. test('leads to Enterprise support on Enterprise pages', async () => {
  12. const $ = await getDOM(`/en/enterprise/${enterpriseServerReleases.latest}`)
  13. expect($('a#contact-us').attr('href')).toBe('https://enterprise.github.com/support')
  14. })
  15. test('leads to dotcom support on 404 pages', async () => {
  16. const $ = await getDOM('/en/delicious-snacks/donuts.php')
  17. expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
  18. })
  19. })
  20. })
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...