|
1 | 1 | import { getDOM } from '../helpers/supertest.js'
|
2 |
| -import enterpriseServerReleases from '../../lib/enterprise-server-releases.js' |
3 | 2 | import nonEnterpriseDefaultVersion from '../../lib/non-enterprise-default-version.js'
|
4 | 3 | import { jest } from '@jest/globals'
|
5 | 4 |
|
6 | 5 | describe('footer', () => {
|
7 | 6 | jest.setTimeout(10 * 60 * 1000)
|
8 | 7 |
|
9 | 8 | describe('"contact us" link', () => {
|
10 |
| - test('leads to dotcom support on dotcom pages', async () => { |
| 9 | + test('leads to support from articles', async () => { |
11 | 10 | const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github`)
|
12 | 11 | expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
|
13 | 12 | })
|
14 | 13 |
|
15 |
| - test('leads to Enterprise support on Enterprise pages', async () => { |
16 |
| - const $ = await getDOM(`/en/enterprise/${enterpriseServerReleases.latest}`) |
17 |
| - expect($('a#contact-us').attr('href')).toBe('https://enterprise.github.com/support') |
18 |
| - }) |
19 |
| - |
20 |
| - test('leads to Enterprise support on GHEC pages', async () => { |
21 |
| - const $ = await getDOM('/en/enterprise-cloud@latest') |
22 |
| - expect($('a#contact-us').attr('href')).toBe('https://enterprise.github.com/support') |
23 |
| - }) |
24 |
| - |
25 |
| - test('leads to dotcom support on 404 pages', async () => { |
| 14 | + test('leads to support on 404 pages', async () => { |
26 | 15 | const $ = await getDOM('/delicious-snacks/donuts.php', { allow404: true })
|
27 | 16 | expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
|
28 | 17 | })
|
29 | 18 | })
|
30 | 19 |
|
31 | 20 | describe('"contact us" link with nextjs', () => {
|
32 |
| - test('leads to dotcom support on dotcom pages', async () => { |
| 21 | + test('leads to support from articles', async () => { |
33 | 22 | const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github?nextjs=`)
|
34 | 23 | expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
|
35 | 24 | })
|
|
0 commit comments