Add external GitHub CLI product (#16277)
This commit is contained in:
@@ -43,6 +43,12 @@ sortedProductIds.forEach(productId => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const externalProducts = {
|
const externalProducts = {
|
||||||
|
cli: {
|
||||||
|
id: 'cli',
|
||||||
|
name: 'GitHub CLI',
|
||||||
|
href: 'https://cli.github.com/manual',
|
||||||
|
external: true
|
||||||
|
},
|
||||||
atom: {
|
atom: {
|
||||||
id: 'atom',
|
id: 'atom',
|
||||||
name: 'Atom',
|
name: 'Atom',
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ describe('sidebar', () => {
|
|||||||
expect($githubPage('.sidebar li.sidebar-product > a').text().trim()).toBe('GitHub.com')
|
expect($githubPage('.sidebar li.sidebar-product > a').text().trim()).toBe('GitHub.com')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('includes links to external products like Atom and Electron', async () => {
|
test('includes links to external products like the CLI, Atom, and Electron', async () => {
|
||||||
|
expect($homePage('.sidebar a[href="https://cli.github.com/manual"]')).toHaveLength(1)
|
||||||
expect($homePage('.sidebar a[href="https://atom.io/docs"]')).toHaveLength(1)
|
expect($homePage('.sidebar a[href="https://atom.io/docs"]')).toHaveLength(1)
|
||||||
expect($homePage('.sidebar a[href="https://electronjs.org/docs"]')).toHaveLength(1)
|
expect($homePage('.sidebar a[href="https://electronjs.org/docs"]')).toHaveLength(1)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user