Skip to content

Commit 892c4b7

Browse files
authored
Merge pull request #38621 from github/repo-sync
Repo sync
2 parents 8c20421 + de2b0f3 commit 892c4b7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/fixtures/tests/playwright-local-dev.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test('view the early-access links page', async ({ page }) => {
4545
await page.goto('/early-access')
4646
await turnOffExperimentsInPage(page)
4747
await expect(page).toHaveURL(/\/en\/early-access/)
48-
await page.getByRole('heading', { name: 'Early Access documentation' }).click()
48+
await page.getByRole('heading', { name: 'Early Access documentation', level: 1 }).click()
4949
const links = await page.$$eval(
5050
'#article-contents ul li a',
5151
(elements: HTMLAnchorElement[]) => elements,

src/frame/components/page-header/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ export const Header = () => {
236236
>
237237
<AllProductsLink />
238238
{error === '404' || !currentProduct || isSearchResultsPage ? null : (
239-
<div className="mt-3">
239+
<h2 className="mt-3">
240240
<Link
241241
data-testid="sidebar-product-dialog"
242242
href={currentProduct.href}
243243
className="d-block pl-1 mb-2 h3 color-fg-default no-underline"
244244
>
245245
{currentProductName || currentProduct.name}
246246
</Link>
247-
</div>
247+
</h2>
248248
)}
249249
{isRestPage && <ApiVersionPicker />}
250250
</Dialog.Header>

src/frame/components/sidebar/SidebarNav.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const SidebarNav = ({ variant = 'full' }: Props) => {
4040
<div className={cx('d-none px-4 pb-3 border-bottom d-xxl-block')}>
4141
<AllProductsLink />
4242
{showCurrentProductLink && (
43-
<div className="mt-3" id="allproducts-menu">
43+
<h2 className="mt-3" id="allproducts-menu">
4444
<Link
4545
data-testid="sidebar-product-xl"
4646
href={`/${router.locale}${currentProduct.href}`}
@@ -50,7 +50,7 @@ export const SidebarNav = ({ variant = 'full' }: Props) => {
5050
>
5151
{currentProductName || currentProduct.name}
5252
</Link>
53-
</div>
53+
</h2>
5454
)}
5555
{variant === 'full' && isRestPage && <ApiVersionPicker />}
5656
</div>

src/release-notes/tests/release-notes-1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('release notes', () => {
3636
const $ = await getDOM(`/en/enterprise-server@${oldestSupportedGhes}/admin/release-notes`)
3737
expect($('h1').first().text()).toBe(`Enterprise Server ${oldestSupportedGhes} release notes`)
3838
expect(
39-
$('h2').first().text().trim().startsWith(`Enterprise Server ${oldestSupportedGhes}`),
39+
$('main h2').first().text().trim().startsWith(`Enterprise Server ${oldestSupportedGhes}`),
4040
).toBe(true)
4141
})
4242

0 commit comments

Comments
 (0)