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:
@@ -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/')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user