mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
maybe fix
This commit is contained in:
@@ -82,6 +82,7 @@ async def test_headings_that_look_like_they_contain_markup(text: str) -> None:
|
||||
|
||||
document = f"# {text}"
|
||||
async with MarkdownStringViewerApp(document).run_test() as pilot:
|
||||
await pilot.pause()
|
||||
assert pilot.app.query_one(MD.MarkdownH1)._content == Content(text)
|
||||
toc_tree = pilot.app.query_one(MD.MarkdownTableOfContents).query_one(Tree)
|
||||
# The toc label looks like "I {text}" but the I is styled so we drop it.
|
||||
|
||||
Reference in New Issue
Block a user