diff --git a/components/rest/RestOperationHeading.tsx b/components/rest/RestOperationHeading.tsx
index f860a3da29..5c4b8d8d1a 100644
--- a/components/rest/RestOperationHeading.tsx
+++ b/components/rest/RestOperationHeading.tsx
@@ -9,12 +9,12 @@ type Props = {
export function RestOperationHeading({ slug, title, descriptionHTML }: Props) {
return (
<>
-
+
{title}
-
+
>
)
diff --git a/tests/rendering/rest.js b/tests/rendering/rest.js
index ea8d365ce1..0c21327024 100644
--- a/tests/rendering/rest.js
+++ b/tests/rendering/rest.js
@@ -9,17 +9,17 @@ import { getDiffOpenAPIContentRest } from '../../script/rest/test-open-api-schem
describe('REST references docs', () => {
jest.setTimeout(3 * 60 * 1000)
- // Checks that every version of the /rest/references/checks
+ // Checks that every version of the /rest/checks
// page has every operation defined in the openapi schema.
test('loads schema data for all versions', async () => {
for (const version in allVersions) {
const checksRestOperations = await getRest(version, 'checks', 'runs')
const $ = await getDOM(`/en/${version}/rest/checks/runs`)
- const domH3Ids = $('h3')
- .map((i, h3) => $(h3).attr('id'))
+ const domH2Ids = $('h2')
+ .map((i, h2) => $(h2).attr('id'))
.get()
const schemaSlugs = checksRestOperations.map((operation) => slugger.slug(operation.title))
- expect(schemaSlugs.every((slug) => domH3Ids.includes(slug))).toBe(true)
+ expect(schemaSlugs.every((slug) => domH2Ids.includes(slug))).toBe(true)
}
})