diff --git a/tests/snapshot_tests/__snapshots__/test_snapshots/test_focus_on_click.svg b/tests/snapshot_tests/__snapshots__/test_snapshots/test_focus_on_click.svg index fcf89ec8b1..20dee6be27 100644 --- a/tests/snapshot_tests/__snapshots__/test_snapshots/test_focus_on_click.svg +++ b/tests/snapshot_tests/__snapshots__/test_snapshots/test_focus_on_click.svg @@ -32,10 +32,10 @@ font-family: arial; } - .terminal-r1 { fill: #0e0e0e } + .terminal-r1 { fill: #2d2d2d } .terminal-r2 { fill: #c5c8c6 } -.terminal-r3 { fill: #a2a2a2;font-weight: bold } -.terminal-r4 { fill: #242424 } +.terminal-r3 { fill: #e0e0e0;font-weight: bold } +.terminal-r4 { fill: #0d0d0d } @@ -121,7 +121,7 @@ - + ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔  Click  diff --git a/tests/snapshot_tests/test_snapshots.py b/tests/snapshot_tests/test_snapshots.py index 4eba817cdd..966df78e2a 100644 --- a/tests/snapshot_tests/test_snapshots.py +++ b/tests/snapshot_tests/test_snapshots.py @@ -4744,8 +4744,7 @@ async def action_clear(self) -> None: def test_focus_on_click(snap_compare) -> None: """Test focus on click may be prevented. - You should see a button in a non-focused stated - + You should see a button in a non-focused state. """ class NonFocusButton(Button): @@ -4758,6 +4757,7 @@ def compose(self) -> ComposeResult: yield NonFocusButton("Click") async def run_before(pilot: Pilot) -> None: + pilot.app.query_one(NonFocusButton).active_effect_duration = 0 await pilot.pause() await pilot.click(NonFocusButton)