diff --git a/components/landing/ArticleList.tsx b/components/landing/ArticleList.tsx
index 39ff055cf9..4291166f2b 100644
--- a/components/landing/ArticleList.tsx
+++ b/components/landing/ArticleList.tsx
@@ -25,7 +25,7 @@ export const ArticleList = ({
<>
{title && (
-
{title}
+
{title}
{viewAllHref && (
+ !link.hideIntro && link.intro ? (
+
+
+
+ ) : (
-
+ >
+ )
}
>
{!link.hideIntro && link.intro && (
diff --git a/components/landing/CodeExampleCard.tsx b/components/landing/CodeExampleCard.tsx
index b1f5b431ea..628d9f1c76 100644
--- a/components/landing/CodeExampleCard.tsx
+++ b/components/landing/CodeExampleCard.tsx
@@ -14,7 +14,7 @@ export const CodeExampleCard = ({ example }: Props) => {
href={`https://github.com/${example.href}`}
>
-
+
{
className="Box color-shadow-medium height-full d-block hover-shadow-large no-underline color-fg-default p-5"
href={guide.href}
>
-
+
{
return (
-
+
{treeNode.renderedFullTitle}
-
+
{
const $featuredLinks = $('[data-testid=article-list] a')
expect($featuredLinks).toHaveLength(9)
expect($featuredLinks.eq(0).attr('href')).toBe('/en/get-started/quickstart/set-up-git')
- expect($featuredLinks.eq(0).children('h4').text().startsWith('Set up Git')).toBe(true)
+ expect($featuredLinks.eq(0).children('h3').text().startsWith('Set up Git')).toBe(true)
expect($featuredLinks.eq(0).children('p').text().startsWith('At the heart of GitHub')).toBe(
true
)
expect($featuredLinks.eq(8).attr('href')).toBe('/en/pages')
- expect($featuredLinks.eq(8).children('h4').text().startsWith('GitHub Pages')).toBe(true)
+ expect($featuredLinks.eq(8).children('h3').text().startsWith('GitHub Pages')).toBe(true)
expect($featuredLinks.eq(8).children('p').text().startsWith('You can create a website')).toBe(
true
)
@@ -74,7 +74,7 @@ describe('featuredLinks', () => {
expect($featuredLinks.eq(0).attr('href')).toBe(
`/en/enterprise-server@${enterpriseServerReleases.latest}/github/getting-started-with-github/githubs-products`
)
- expect($featuredLinks.eq(0).children('h4').text().startsWith("GitHub's products")).toBe(true)
+ expect($featuredLinks.eq(0).children('h3').text().startsWith("GitHub's products")).toBe(true)
expect(
$featuredLinks
.eq(0)
diff --git a/tests/rendering/server.js b/tests/rendering/server.js
index 6cfdd31855..e549fde9d4 100644
--- a/tests/rendering/server.js
+++ b/tests/rendering/server.js
@@ -810,7 +810,7 @@ describe('GitHub Enterprise URLs', () => {
test('renders the Enterprise Admin category homepage', async () => {
const adminPath = `/en/enterprise-server@${enterpriseServerReleases.latest}/admin`
const $ = await getDOM(adminPath)
- expect($(`h3 ~ a[href="${adminPath}/guides"]`).length).toBe(1)
+ expect($(`h2 ~ a[href="${adminPath}/guides"]`).length).toBe(1)
expect($('h2 a[href="#all-docs"]').length).toBe(1)
})