Skip to content

Commit 73dec80

Browse files
committed
snapshot
1 parent ae39349 commit 73dec80

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/snapshot_tests/test_snapshots.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,3 +2841,21 @@ def action_add_pane(self) -> None:
28412841
tabbed_content.add_pane(new_pane)
28422842

28432843
snap_compare(ExampleApp(), press=["a", "r", "a"])
2844+
2845+
2846+
def test_click_expand_select(snap_compare):
2847+
"""Regression test for https://github.com/Textualize/textual/issues/5255
2848+
Should show a select with 15 highlighted."""
2849+
2850+
class SelectApp(App):
2851+
def compose(self) -> ComposeResult:
2852+
yield Select.from_values(
2853+
range(20),
2854+
value=15,
2855+
)
2856+
2857+
async def run_before(pilot: Pilot) -> None:
2858+
await pilot.pause()
2859+
await pilot.click(Select)
2860+
2861+
snap_compare(SelectApp(), run_before=run_before)

0 commit comments

Comments
 (0)