From f52f37762d833ec84c666ecf750ad8bfb5132f51 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 29 Nov 2023 11:50:42 +0000 Subject: [PATCH] fix snapshot test --- src/textual/pilot.py | 6 +- .../__snapshots__/test_snapshots.ambr | 120 +++++++++--------- 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/src/textual/pilot.py b/src/textual/pilot.py index c3bcbe2978..07873ab36f 100644 --- a/src/textual/pilot.py +++ b/src/textual/pilot.py @@ -323,12 +323,12 @@ async def _post_mouse_events( # Get the widget under the mouse before the event because the app might # react to the event and move things around. We override on each iteration # because we assume the final event in `events` is the actual event we care - # about and that all the preceeding events are just setup. - # E.g., the click event is preceeded by MouseDown/MouseUp to emulate how + # about and that all the preceding events are just setup. + # E.g., the click event is preceded by MouseDown/MouseUp to emulate how # the driver works and emits a click event. widget_at, _ = app.get_widget_at(*offset) event = mouse_event_cls(**message_arguments) - app.post_message(event) + app.screen._forward_event(event) await self.pause() return selector is None or widget_at is target_widget diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots.ambr b/tests/snapshot_tests/__snapshots__/test_snapshots.ambr index 84857386ae..a1da279f1c 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots.ambr +++ b/tests/snapshot_tests/__snapshots__/test_snapshots.ambr @@ -8002,136 +8002,136 @@ font-weight: 700; } - .terminal-3953145704-matrix { + .terminal-3762053931-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-3953145704-title { + .terminal-3762053931-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-3953145704-r1 { fill: #c5c8c6 } - .terminal-3953145704-r2 { fill: #008000 } - .terminal-3953145704-r3 { fill: #e8e0e7 } - .terminal-3953145704-r4 { fill: #eae3e5 } - .terminal-3953145704-r5 { fill: #ede6e6 } - .terminal-3953145704-r6 { fill: #efe9e4 } - .terminal-3953145704-r7 { fill: #efeedf } + .terminal-3762053931-r1 { fill: #c5c8c6 } + .terminal-3762053931-r2 { fill: #008000 } + .terminal-3762053931-r3 { fill: #e8e0e7 } + .terminal-3762053931-r4 { fill: #eae3e5 } + .terminal-3762053931-r5 { fill: #1e1e1e } + .terminal-3762053931-r6 { fill: #ede6e6 } + .terminal-3762053931-r7 { fill: #efeedf } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - KeylineApp + KeylineApp - - - - - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - - - #foo - - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━#bar - - - PlaceholderPlaceholder - - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - - - #baz - - - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - + + + + + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + + + #foo + + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━#bar + + + Placeholder + + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + + + #baz + + + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +