Mouse navigation should result in the expected messages.
()
| 480 | |
| 481 | |
| 482 | async def test_mouse_navigation_messages(): |
| 483 | """Mouse navigation should result in the expected messages.""" |
| 484 | async with TabsMessageCatchApp().run_test() as pilot: |
| 485 | await pilot.click("#tab-2") |
| 486 | await pilot.pause() |
| 487 | await pilot.click("Underline", offset=(2, 0)) |
| 488 | await pilot.pause() |
| 489 | assert pilot.app.intended_handlers == [ |
| 490 | "on_tabs_tab_activated", |
| 491 | "on_tabs_tab_activated", |
| 492 | "on_tabs_tab_activated", |
| 493 | ] |
| 494 | |
| 495 | |
| 496 | async def test_disabled_tab_is_not_activated_by_clicking_underline(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…