1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Adding Product feedback redirect (#20785)

* adding product feedback redirect for community on sponsors, discussions, and actions community link

* remove community redirect from actions and add to codespaces and add tests

* update wording for these links

* updating to add name of the button to frontmatter
This commit is contained in:
Grace Park
2021-08-11 10:37:41 -07:00
committed by GitHub
parent 9d7c9ae581
commit 5b59619d68
7 changed files with 60 additions and 2 deletions

View File

@@ -29,4 +29,34 @@ describe('footer', () => {
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
})
})
describe('test redirects for product landing community links pages', () => {
test('codespaces product landing page leads to codespaces discussions page', async () => {
const $ = await getDOM(`/en/codespaces`)
expect($('a#ask-community').attr('href')).toBe(
'https://github.com/github/feedback/discussions/categories/codespaces-feedback'
)
})
test('sponsors product landing page leads to sponsors discussions page', async () => {
const $ = await getDOM(`/en/sponsors`)
expect($('a#ask-community').attr('href')).toBe(
'https://github.com/github/feedback/discussions/categories/sponsors-feedback'
)
})
test('codespaces product landing page leads to discussions discussions page', async () => {
const $ = await getDOM(`/en/discussions`)
expect($('a#ask-community').attr('href')).toBe(
'https://github.com/github/feedback/discussions/categories/discussions-feedback'
)
})
})
describe('test redirects for non-product landing community links pages', () => {
test('leads to https://github.community/ when clicking on the community link', async () => {
const $ = await getDOM(`/en/github/authenticating-to-github`)
expect($('a#ask-community').attr('href')).toBe('https://github.community/')
})
})
})