Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/snapshot_tests/test_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)

Expand Down
Loading