@@ -68,9 +68,6 @@ def test_expand_includes(backend: Backend) -> None:
6868 <heading id="skip-includes">
6969 <text>Skip includes</text>
7070 </heading>
71- <directive name="default-domain">
72- <text>mongodb</text>
73- </directive>
7471 <directive name="meta" keywords="connect">
7572 </directive>
7673 </section>
@@ -156,7 +153,7 @@ def test_role_explicit_title(backend: Backend) -> None:
156153 assert isinstance (ast , n .Root )
157154
158155 # Assert that ref_roles with an explicit title work
159- paragraph = cast (Any , ast ).children [1 ].children [4 ].children [1 ].children [2 ]
156+ paragraph = cast (Any , ast ).children [1 ].children [3 ].children [1 ].children [2 ]
160157 assert isinstance (paragraph , n .Paragraph )
161158 ref_role = paragraph .children [1 ]
162159 print (ast_to_testing_string (ref_role ))
@@ -243,7 +240,7 @@ def test_target_titles(backend: Backend) -> None:
243240 # Assert that titles are correctly located
244241 section = ast .children [1 ]
245242 assert isinstance (section , n .Parent )
246- section = section .children [4 ]
243+ section = section .children [3 ]
247244 assert isinstance (section , n .Parent )
248245 target1 = section .children [- 2 ]
249246 target2 = section .children [- 1 ]
@@ -263,12 +260,12 @@ def test_program_option(backend: Backend) -> None:
263260 assert isinstance (ast , n .Root )
264261
265262 section : Any = ast .children [0 ]
266- include = section .children [3 ]
267- program1 = section .children [2 ]
263+ include = section .children [2 ]
264+ program1 = section .children [1 ]
268265 option1_1 = include .children [0 ]
269- option1_2 = section .children [4 ]
270- program2 = section .children [5 ]
271- option2_1 = section .children [6 ]
266+ option1_2 = section .children [3 ]
267+ program2 = section .children [4 ]
268+ option2_1 = section .children [5 ]
272269
273270 # Test directives
274271 check_ast_testing_string (
@@ -332,7 +329,7 @@ def test_program_option(backend: Backend) -> None:
332329 assert len (diagnostics ) == 1 , diagnostics
333330 assert isinstance (diagnostics [0 ], AmbiguousTarget )
334331
335- roles = section .children [7 ].children
332+ roles = section .children [6 ].children
336333 check_ast_testing_string (
337334 roles [0 ].children [0 ].children [0 ],
338335 """
0 commit comments