File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ type Props = {
9
9
export function RestOperationHeading ( { slug, title, descriptionHTML } : Props ) {
10
10
return (
11
11
< >
12
- < h3 id = { slug } >
12
+ < h2 id = { slug } >
13
13
< a href = { `#${ slug } ` } >
14
14
< LinkIcon size = { 16 } className = "m-1" />
15
15
</ a >
16
16
{ title }
17
- </ h3 >
17
+ </ h2 >
18
18
< div dangerouslySetInnerHTML = { { __html : descriptionHTML } } />
19
19
</ >
20
20
)
Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ import { getDiffOpenAPIContentRest } from '../../script/rest/test-open-api-schem
9
9
describe ( 'REST references docs' , ( ) => {
10
10
jest . setTimeout ( 3 * 60 * 1000 )
11
11
12
- // Checks that every version of the /rest/references/ checks
12
+ // Checks that every version of the /rest/checks
13
13
// page has every operation defined in the openapi schema.
14
14
test ( 'loads schema data for all versions' , async ( ) => {
15
15
for ( const version in allVersions ) {
16
16
const checksRestOperations = await getRest ( version , 'checks' , 'runs' )
17
17
const $ = await getDOM ( `/en/${ version } /rest/checks/runs` )
18
- const domH3Ids = $ ( 'h3 ' )
19
- . map ( ( i , h3 ) => $ ( h3 ) . attr ( 'id' ) )
18
+ const domH2Ids = $ ( 'h2 ' )
19
+ . map ( ( i , h2 ) => $ ( h2 ) . attr ( 'id' ) )
20
20
. get ( )
21
21
const schemaSlugs = checksRestOperations . map ( ( operation ) => slugger . slug ( operation . title ) )
22
- expect ( schemaSlugs . every ( ( slug ) => domH3Ids . includes ( slug ) ) ) . toBe ( true )
22
+ expect ( schemaSlugs . every ( ( slug ) => domH2Ids . includes ( slug ) ) ) . toBe ( true )
23
23
}
24
24
} )
25
25
You can’t perform that action at this time.
0 commit comments