Skip to content

Commit a865903

Browse files
committed
debug for CI
1 parent 44ace19 commit a865903

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/textual/pilot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ async def _post_mouse_events(
414414
elif isinstance(widget, Widget):
415415
target_widget = widget
416416
else:
417-
target_widget = app.screen.query_one(widget)
417+
target_widget = screen.query_one(widget)
418418

419419
message_arguments = _get_mouse_message_arguments(
420420
target_widget,
@@ -447,6 +447,7 @@ async def _post_mouse_events(
447447

448448
if widget_at is None:
449449
widget_at, _ = app.get_widget_at(*offset)
450+
print("widget_at", repr(widget_at))
450451
event = mouse_event_cls(**kwargs)
451452
# Bypass event processing in App.on_event. Because App.on_event
452453
# is responsible for updating App.mouse_position, and because

tests/test_modal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ async def test_modal_pop_screen():
9191
# Pause to ensure the footer is fully composed to avoid flakiness in CI
9292
await pilot.pause()
9393
assert await app.wait_for_refresh()
94+
await pilot.pause(1) # silly test
9495
assert await pilot.click("FooterKey")
9596
assert await app.wait_for_refresh()
9697
assert isinstance(app.screen, QuitScreen)

0 commit comments

Comments
 (0)