Skip to content

Commit 5c29c1a

Browse files
committed
mae markdownviewer tests click on links
1 parent b2bf8c4 commit 5c29c1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_markdownviewer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626

2727
class MarkdownFileViewerApp(App[None]):
28+
2829
def __init__(self, markdown_file: Path) -> None:
2930
super().__init__()
3031
self.markdown_file = markdown_file
@@ -45,7 +46,7 @@ async def test_markdown_file_viewer_anchor_link(tmp_path, link: int) -> None:
4546
# There's not really anything to test *for* here, but the lack of an
4647
# exception is the win (before the fix this is testing it would have
4748
# been FileNotFoundError).
48-
await pilot.click(Markdown, Offset(2, link))
49+
await pilot.click(Markdown, Offset(4, link))
4950

5051

5152
class MarkdownStringViewerApp(App[None]):
@@ -71,7 +72,7 @@ async def test_markdown_string_viewer_anchor_link(link: int) -> None:
7172
# There's not really anything to test *for* here, but the lack of an
7273
# exception is the win (before the fix this is testing it would have
7374
# been FileNotFoundError).
74-
await pilot.click(Markdown, Offset(2, link))
75+
await pilot.click(Markdown, Offset(4, link))
7576

7677

7778
@pytest.mark.parametrize("text", ["Hey [[/test]]", "[i]Hey there[/i]"])

0 commit comments

Comments
 (0)