Test that the pointer shape updates.
()
| 390 | |
| 391 | |
| 392 | async def test_pointer_shape() -> None: |
| 393 | """Test that the pointer shape updates.""" |
| 394 | |
| 395 | class PointerApp(App): |
| 396 | def compose(self) -> ComposeResult: |
| 397 | yield Static("Hello") |
| 398 | yield Button("Click me") |
| 399 | |
| 400 | app = PointerApp() |
| 401 | async with app.run_test() as pilot: |
| 402 | await pilot.hover(offset=(0, 0)) |
| 403 | assert app.screen._pointer_shape == "default" |
| 404 | await pilot.hover(offset=(1, 1)) |
| 405 | assert app.screen._pointer_shape == "pointer" |
| 406 | |
| 407 | |
| 408 | async def test_get_screen_stack() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…